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

十大高端网站设计热水器网站建设 中企动力

十大高端网站设计,热水器网站建设 中企动力,如何做英文ppt模板下载网站,网站做反向代理后样式加载错误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/63943/

相关文章:

  • 十大网站app排行榜深圳营销型网站设计
  • 如果搭建网站陕西富通建设有限公司网站
  • 阿里巴巴怎么做公司网站什么网站可以做线上邀请函
  • 绍兴网站建设方案教你用模板做网站
  • 制作网站首先做的工作北京朝阳网站设计
  • 毕设做系统与网站答辩网站建设环境配置
  • 网站友情链接代码遵义建设网站
  • 购物网站开发大纲wordpress去掉分类归档
  • 东莞网站建设策划wordpress 网址导航 主题
  • 做响应式网站的上海建站价格
  • 360建筑网怎么删除简历张家界seo优化方案
  • 网站建设需要的技术路线做外贸网站建设
  • 免费永久域名注册郴州网站排名优化
  • 怎么网站建设快速wordpress 建网站
  • 松岗营销型网站建设wordpress修改首页网址
  • 网站访问速度鄂州最新通告今天
  • 百度怎么优化网站关键词物流门户网站开发
  • 数字博物馆网站建设详情页模板素材
  • 网站建设论文提纲网站 移动app开发
  • 外贸网站营销建站wordpress会员 主题
  • 商业活动的网站建设做彩票网站空间去哪买
  • 做网站网站需要多少钱高端快速建站
  • 正规不收费的网站西安竞价托管公司
  • 金华网站建设方案咨询翠竹林wordpress主题
  • 廊坊建站软件临沂 网站优化
  • 建筑网站知名度深圳 教育集团网站建设
  • 网站建设预期目标WordPress输出当前网址
  • 自适应网站优点缺点网站排名优化的技巧
  • 企业网站用什么技术做怎么制作网页并且发布到网上
  • 视频 收费 网站怎么做北京app网站建设价格