From 3e824c34980255e022a2085159a6e36daa986667 Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Tue, 29 Nov 2022 18:00:48 +1100 Subject: [PATCH v8] Add "Statistics Views" section and refentry for each view. --- doc/src/sgml/monitoring.sgml | 257 ++++++++++++++++++++++++++++++++----------- 1 file changed, 194 insertions(+), 63 deletions(-) diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index f7d0c2f..58cd655 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -290,6 +290,11 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser linkend="predefined-roles"/>) can see all the information about all sessions. + + + + Statistics Views + Dynamic Statistics Views @@ -746,10 +751,14 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser into the kernel's handling of I/O. - + + + pg_stat_activity + View + - - <structname>pg_stat_activity</structname> + + Description pg_stat_activity @@ -2391,10 +2400,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_stat_replication + View + - - <structname>pg_stat_replication</structname> + + Description pg_stat_replication @@ -2728,10 +2743,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_stat_replication_slots + View + - - <structname>pg_stat_replication_slots</structname> + + Description pg_stat_replication_slots @@ -2877,10 +2898,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
-
+ - - <structname>pg_stat_wal_receiver</structname> + + + pg_stat_wal_receiver + View + + + + Description pg_stat_wal_receiver @@ -3057,10 +3084,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + - - <structname>pg_stat_recovery_prefetch</structname> + + + pg_stat_recovery_prefetch + View + + + + Description pg_stat_recovery_prefetch @@ -3203,10 +3236,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_stat_subscription + View + - - <structname>pg_stat_subscription</structname> + + Description pg_stat_subscription @@ -3314,10 +3353,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_stat_subscription_stats + View + - - <structname>pg_stat_subscription_stats</structname> + + Description pg_stat_subscription_stats @@ -3392,10 +3437,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + - - <structname>pg_stat_ssl</structname> + + + pg_stat_ssl + View + + + + Description pg_stat_ssl @@ -3513,10 +3564,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_stat_gssapi + View + - - <structname>pg_stat_gssapi</structname> + + Description pg_stat_gssapi @@ -3588,10 +3645,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_stat_archiver + View + - - <structname>pg_stat_archiver</structname> + + Description pg_stat_archiver @@ -3692,10 +3755,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i archived. - + + + + + pg_stat_bgwriter + View + - - <structname>pg_stat_bgwriter</structname> + + Description pg_stat_bgwriter @@ -3829,10 +3898,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + - - <structname>pg_stat_wal</structname> + + + pg_stat_wal + View + + + + Description pg_stat_wal @@ -3963,10 +4038,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_stat_database + View + - - <structname>pg_stat_database</structname> + + Description pg_stat_database @@ -4288,10 +4369,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + - - <structname>pg_stat_database_conflicts</structname> + + + pg_stat_database_conflicts + View + + + + Description pg_stat_database_conflicts @@ -4391,10 +4478,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_stat_all_tables + View + - - <structname>pg_stat_all_tables</structname> + + Description pg_stat_all_tables @@ -4662,10 +4755,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_stat_all_indexes + View + - - <structname>pg_stat_all_indexes</structname> + + Description pg_stat_all_indexes @@ -4811,10 +4910,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_statio_all_tables + View + - - <structname>pg_statio_all_tables</structname> + + Description pg_statio_all_tables @@ -4947,10 +5052,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + - - <structname>pg_statio_all_indexes</structname> + + + pg_statio_all_indexes + View + + + + Description pg_statio_all_indexes @@ -5047,10 +5158,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_statio_all_sequences + View + - - <structname>pg_statio_all_sequences</structname> + + Description pg_statio_all_sequences @@ -5125,10 +5242,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + + + + + pg_stat_user_functions + View + - - <structname>pg_stat_user_functions</structname> + + Description pg_stat_user_functions @@ -5215,10 +5338,16 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i - + - - <structname>pg_stat_slru</structname> + + + pg_stat_slru + View + + + + Description SLRU @@ -5337,6 +5466,8 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i + + -- 1.8.3.1