登录 注册
当前位置:主页 > 资源下载 > 9 > 监控 PostgreSQL 查询的 pg-monitor-sql

监控 PostgreSQL 查询的 pg-monitor-sql

  • 更新:2024-10-07 21:57:09
  • 大小:6KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:其它 - 开发技术
  • 格式:ZIP

资源介绍

pg-monitor-sql PostrgreSQL 监控查询 概述 SELECT d.datname, pg_size_pretty(pg_database_size(d.datname)) as size, numbackends, xact_commit, xact_rollback, blks_read, blks_hit, blks_hit::float / ( blks_hit + blks_read ) * 100.0 as cache_hit_ratio, tup_fetched, tup_returned, tup_inserted, tup_updated, tup_deleted FROM pg_stat_database d RIGHT JOIN pg_database on d.datname = p