The document lists various PostgreSQL system catalog views and functions that provide statistics and metrics about different database activities and operations. These include statistics on connections, statements, transactions, replication, disk reads and writes, table and index sizes, and the progress of vacuum, cluster, analyze and other operations.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
11 views
Postgre SQL
The document lists various PostgreSQL system catalog views and functions that provide statistics and metrics about different database activities and operations. These include statistics on connections, statements, transactions, replication, disk reads and writes, table and index sizes, and the progress of vacuum, cluster, analyze and other operations.
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
summary activity – a compilation/selection of metrics from different sources –
postgres uptime, version, recovery status, number of clients grouped by their
states, number of (auto)vacuums, statements per second, age of the longest transaction and the longest vacuum; pg_stat_activity – activity of connected clients and background processes. pg_stat_database – database-wide and sessions statistics, such as number of commits/rollbacks, processed tuples, deadlocks, temporary files, etc. pg_stat_replication – replication statistics, like connected standbys, their activity and replication lag. pg_stat_user_tables, pg_statio_user_tables – statistics on accesses (including IO) to tables. pg_stat_user_indexes, pg_statio_user_indexes – statistics on accesses (including IO) to indexes. pg_stat_user_functions – statistics on execution of functions. pg_stat_wal – WAL usage statistics. pg_stat_statements – statistics on SQL statements executed including time and resources usage. statistics on tables sizes based on pg_relation_size() and pg_total_relation_size() functions; pg_stat_progress_vacuum – progress of (auto)vacuums operations. pg_stat_progress_cluster – progress of CLUSTER and VACUUM FULL operations. pg_stat_progress_create_index – progress of CREATE INDEX and REINDEX operations. pg_stat_progress_analyze – progress of ANALYZE operations. pg_stat_progress_basebackup – progress of basebackup operations. pg_stat_progress_copy – progress of COPY operations.