From 84632b35e65ef803eb32eadfce3d363a13891cb1 Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Wed, 11 Jan 2023 16:51:56 +1100 Subject: [PATCH v10] 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 358d2ff..c222b53 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 @@ -681,10 +686,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 @@ -2343,10 +2352,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 @@ -2680,10 +2695,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 @@ -2829,10 +2850,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 @@ -3009,10 +3036,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 @@ -3155,10 +3188,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 @@ -3266,10 +3305,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 @@ -3344,10 +3389,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 @@ -3465,10 +3516,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 @@ -3540,10 +3597,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 @@ -3644,10 +3707,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 @@ -3781,10 +3850,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 @@ -3915,10 +3990,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 @@ -4240,10 +4321,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 @@ -4343,10 +4430,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 @@ -4614,10 +4707,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 @@ -4763,10 +4862,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 @@ -4899,10 +5004,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 @@ -4999,10 +5110,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 @@ -5077,10 +5194,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 @@ -5167,10 +5290,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 @@ -5289,6 +5418,8 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i + + -- 1.8.3.1