当前位置: 首页 > news >正文

义乌百度网站制作做美食的网站有那一些

义乌百度网站制作,做美食的网站有那一些,js做网站登录界面,wordpress主题演示导入1.检查应用连接数 以管理员用户 gbase,登录数据库主节点。 接数据库,并执行如下 SQL 语句查看连接数。 SELECT count(*) FROM (SELECT pg_stat_get_backend_idset() AS backendid) AS s;2.查看空闲连接 查看空闲(state 字段为”idle”)且长时间没有更…

1.检查应用连接数

以管理员用户 gbase,登录数据库主节点。
接数据库,并执行如下 SQL 语句查看连接数。

SELECT count(*) FROM (SELECT pg_stat_get_backend_idset() AS backendid) AS s;

image.png

2.查看空闲连接

查看空闲(state 字段为”idle”)且长时间没有更新过的连接信息,使用如下命令。

SELECT * FROM pg_stat_activity where state='idle' order by state_change;

image.png

3.查看慢SQL

查看数据库实例中慢SQL语句执行信息,语法格式:

select * from dbe_perf.get_global_slow_sql_by_timestamp(start_timestamp, end_timestamp);

例如

select * from DBE_PERF.get_global_full_sql_by_timestamp('2024-08-30 09:25:22', '2024-08-30 23:54:41');

image.png

4.查看历史SQL

查看当前主节点SQL语句执行信息

 select * from statement_history;

表的结构为

postgres=# \d statement_historyUnlogged table "pg_catalog.statement_history"Column        |           Type           | Modifiers 
----------------------+--------------------------+-----------db_name              | name                     | schema_name          | name                     | origin_node          | integer                  | user_name            | name                     | application_name     | text                     | client_addr          | text                     | client_port          | integer                  | unique_query_id      | bigint                   | debug_query_id       | bigint                   | query                | text                     | start_time           | timestamp with time zone | finish_time          | timestamp with time zone | slow_sql_threshold   | bigint                   | transaction_id       | bigint                   | thread_id            | bigint                   | session_id           | bigint                   | n_soft_parse         | bigint                   | n_hard_parse         | bigint                   | query_plan           | text                     | n_returned_rows      | bigint                   | n_tuples_fetched     | bigint                   | n_tuples_returned    | bigint                   | n_tuples_inserted    | bigint                   | n_tuples_updated     | bigint                   | n_tuples_deleted     | bigint                   | n_blocks_fetched     | bigint                   | n_blocks_hit         | bigint                   | db_time              | bigint                   | cpu_time             | bigint                   | execution_time       | bigint                   | parse_time           | bigint                   | plan_time            | bigint                   | rewrite_time         | bigint                   | pl_execution_time    | bigint                   | pl_compilation_time  | bigint                   | data_io_time         | bigint                   | net_send_info        | text                     | net_recv_info        | text                     | net_stream_send_info | text                     | net_stream_recv_info | text                     | lock_count           | bigint                   | lock_time            | bigint                   | lock_wait_count      | bigint                   | lock_wait_time       | bigint                   | lock_max_count       | bigint                   | lwlock_count         | bigint                   | lwlock_wait_count    | bigint                   | lwlock_time          | bigint                   | lwlock_wait_time     | bigint                   | details              | bytea                    | is_slow_sql          | boolean                  | trace_id             | text                     | 
Indexes:"statement_history_time_idx" btree (start_time, is_slow_sql) TABLESPACE pg_default
Replica Identity: NOTHING

备库

select * from dbe_perf.standby_statement_history(true, '2024-08-30 09:25:22', '2024-08-30 23:54:41');

5.数据库实例中SQL语句执行信息

查看数据库实例中SQL语句执行信息,语法格式:

select * from dbe_perf.get_global_full_sql_by_timestamp('2024-08-30 09:25:22', '2024-08-30 23:54:41');

image.png

6.执行加载配置文件命令

select pg_reload_cong();
http://www.yayakq.cn/news/458723/

相关文章:

  • 天津网站建设软件开发招聘wordpress 内容表
  • 大唐网站建设借贷网站开发是否合法
  • 网站关键词怎么优化市场营销策略是什么
  • html5怎么做简单的网站网站做海外的防护
  • 朝阳市网站建设网页设计与网站建设完全实用手册
  • 做外贸的网站主要有哪些阿里巴巴国际站做2个网站有用吗
  • 建设一个58一样的网站多少钱Wordpress老是给攻击
  • 有没有做图的网站河北省网站建设公司排名
  • jsp网站开发实现增删改查重庆网站推广人员
  • dede 网站地图怎么做昆明网站建设首选公司
  • 随州市住房和城乡建设部网站美橙网站开发
  • 洛阳霞光高端定制网站建设wordpress教育网站
  • 怎样把网站打包做百度小程序wordpress超级菜单
  • 外贸网站建设商家免费团购网站模板
  • ps做网站主页的效果图重庆龙华网站建设公司
  • 道滘仿做网站大连男科医院排名表
  • 做网站都要多少钱京东网站设计代码
  • 如何在卖家淘宝网站做产品链接温州集团网站建设公司
  • 网站建设 枫子科技没有网站也可以做外贸吗
  • wordpress 多站点 多域名优化产品
  • 高端的网站设计公司论坛建站哪个比较好
  • 创业谷网站建设规划电商培训课程
  • 做网站前台用什么软件珠海美容网站建设
  • 男朋友抱着我在教室做网站通州商城网站建设
  • 企业做网站的费用如何科目网站建设犭金手指a排名15
  • 企业信息网站模板icp备案 网站名称
  • ppt模板下载完整版北京seo结算
  • 网站开发英文字体一般是什么单页网站开发费用
  • 余姚生活网seo 推广
  • 如何快速优化网站排名建协网官方网站