From e72a2f715d23b6cb3242254dd9be6efea195b7d9 Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Thu, 8 Dec 2022 13:20:27 +1100 Subject: [PATCH v9] 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 6bcc093..b463257 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 @@ -753,10 +758,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 @@ -2400,10 +2409,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 @@ -2737,10 +2752,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 @@ -2886,10 +2907,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 @@ -3066,10 +3093,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 @@ -3212,10 +3245,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 @@ -3323,10 +3362,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 @@ -3401,10 +3446,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 @@ -3522,10 +3573,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 @@ -3597,10 +3654,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 @@ -3701,10 +3764,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 @@ -3838,10 +3907,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 @@ -3972,10 +4047,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 @@ -4297,10 +4378,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 @@ -4400,10 +4487,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 @@ -4671,10 +4764,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 @@ -4820,10 +4919,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 @@ -4956,10 +5061,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 @@ -5056,10 +5167,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 @@ -5134,10 +5251,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 @@ -5224,10 +5347,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 @@ -5346,6 +5475,8 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i + + -- 1.8.3.1