Postgresql - Statistics Collector

环境:pg 11.1

 

系统状态视图

View Name

Description

pg_stat_activity

One row per server process, showing information related to the current activity of that process, such as state and current query.

pg_stat_replication

One row per WAL sender process, showing statistics about replication to that sender's connected standby server.

pg_stat_wal_receiver

Only one row, showing statistics about the WAL receiver from that receiver's connected server.

pg_stat_subscription

At least one row per subscription, showing information about the subscription workers.

pg_stat_ssl

One row per connection (regular and replication), showing information about SSL used on this connection.

pg_stat_progress_vacuum

One row for each backend (including autovacuum worker processes) running VACUUM, showing current progress.

 

View Name

Description

pg_stat_archiver

One row only, showing statistics about the WAL archiver process's activity.

pg_stat_bgwriter

One row only, showing statistics about the background writer process's activity.

pg_stat_database

One row per database, showing database-wide statistics.

pg_stat_database_conflicts

One row per database, showing database-wide statistics about query cancels due to conflict with recovery on standby servers.

pg_stat_all_tables

One row for each table in the current database, showing statistics about accesses to that specific table.

pg_stat_sys_tables

Same as pg_stat_all_tables, except that only system tables are shown.

pg_stat_user_tables

Same as pg_stat_all_tables, except that only user tables are shown.

pg_stat_xact_all_tables

Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.

pg_stat_xact_sys_tables

Same as pg_stat_xact_all_tables, except that only system tables are shown.

pg_stat_xact_user_tables

Same as pg_stat_xact_all_tables, except that only user tables are shown.

pg_stat_all_indexes

One row for each index in the current database, showing statistics about accesses to that specific index.

pg_stat_sys_indexes

Same as pg_stat_all_indexes, except that only indexes on system tables are shown.

pg_stat_user_indexes

Same as pg_stat_all_indexes, except that only indexes on user tables are shown.

pg_statio_all_tables

One row for each table in the current database, showing statistics about I/O on that specific table.

pg_statio_sys_tables

Same as pg_statio_all_tables, except that only system tables are shown.

pg_statio_user_tables

Same as pg_statio_all_tables, except that only user tables are shown.

pg_statio_all_indexes

One row for each index in the current database, showing statistics about I/O on that specific index.

pg_statio_sys_indexes

Same as pg_statio_all_indexes, except that only indexes on system tables are shown.

pg_statio_user_indexes

Same as pg_statio_all_indexes, except that only indexes on user tables are shown.

pg_statio_all_sequences

One row for each sequence in the current database, showing statistics about I/O on that specific sequence.

pg_statio_sys_sequences

Same as pg_statio_all_sequences, except that only system sequences are shown. (Presently, no system sequences are defined, so this view is always empty.)

pg_statio_user_sequences

Same as pg_statio_all_sequences, except that only user sequences are shown.

pg_stat_user_functions

One row for each tracked function, showing statistics about executions of that function.

pg_stat_xact_user_functions

Similar to pg_stat_user_functions, but counts only calls during the current transaction (which are not yet included in pg_stat_user_functions).

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值