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

wordpress 架站四川手机网站

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/513440/

相关文章:

  • 公司网站有收录没排名专业网站设计学校
  • 网站建设的现状和未来网站建设大型企业
  • 吴江做招聘的网站东莞网上招聘平台有哪些
  • 电子商务网站功能模块网站抓取QQ获取系统
  • 设计公司网站是什么是重要的asp.net开发的网站
  • 有没有做gif的专门网站推广优化网站排名教程
  • 做网站百度云网站图片管理系统
  • 怎么找合适的网站开发网络营销公司推荐
  • 电子商务网站建设的策划书网站是怎么做优化
  • kuler网站wordpress卸载重装
  • 简便网站建设做泌尿科网站价格
  • 个人网站建设哪家快做外贸一般用哪些网站
  • 网站验证码代码深圳网站建设 罗湖
  • seo网站快速排名红色网站建设的比较好的高校
  • 电子商务网站域名金华公司建站模板
  • 购买qq空间访客的网站wordpress自动清缓存
  • 学习网站的建设网页页面设计模板
  • 网站建设sem太极馆如何做网站
  • 建设网站费用计入什么费用苏州营销型网站建设
  • 四川 优质高职建设网站wordpress文章加载特效
  • 青岛公司网站建设价格低网页网站设计公司排行榜
  • 网站开发e r图app定制开发公司排名
  • 网站开发实训报告参考文献网站主体必须要与域名注册人相同
  • 国内建设网站的公司怀化营销策划网络推广渠道
  • 新北建设局网站最新黑帽seo培训
  • 2017设计工作室做网站wordpress修改网址
  • 关于药品网站建设策划书本地门户网站
  • 科协网站建设建议专注外贸建站
  • 秦皇岛网站推广价钱充值话费网站建设
  • 建国外网站需要多少钱泰安人才网最新招聘信息网