diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 0484cfa77a..ebb5ee3ba3 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -549,8 +549,9 @@ 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 +
<structname>pg_stat_activity</structname> View @@ -731,7 +732,7 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser wait_event text Wait event name if backend is currently waiting, otherwise NULL. - See for details. + See the set of wait events below for details. @@ -831,13 +832,14 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser -
- <structname>wait_event</structname> Description + + LWLock wait events +
+ LWLock <structname>wait_event</structname> Description - + - Wait Event Type Wait Event Name Description @@ -845,7 +847,6 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser - LWLock ShmemIndexLock Waiting to find or allocate space in shared memory. @@ -1126,8 +1127,26 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser Waiting to allocate or exchange a chunk of memory or update counters during Parallel Hash plan execution. + + +
+ + + + Lock wait events + + Lock <structname>wait_event</structname> Description + + + + + Wait Event Name + Description + + + + - Lock relation Waiting to acquire a lock on a relation. @@ -1168,12 +1187,29 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser Waiting to acquire an advisory user lock. - BufferPin BufferPin Waiting to acquire a pin on a buffer. + + +
+
+ + + Activity wait events + + Activity <structname>wait_event</structname> Description + + + + + Wait Event Name + Description + + + + - Activity ArchiverMain Waiting in main loop of the archiver process. @@ -1229,8 +1265,26 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser WalWriterMainWaiting in main loop of WAL writer process. + + +
+
+ + + Client wait events + + Client <structname>wait_event</structname> Description + + + + + Wait Event Name + Description + + + + - Client ClientRead Waiting to read data from the client. @@ -1263,12 +1317,29 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser Waiting for any activity when processing replies from WAL receiver in WAL sender process. - Extension Extension Waiting in an extension. + + +
+
+ + + IPC wait events + + IPC <structname>wait_event</structname> Description + + + + + Wait Event Name + Description + + + + - IPC BgWorkerShutdown Waiting for background worker to shut down. @@ -1404,8 +1475,25 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser SyncRepWaiting for confirmation from remote server during synchronous replication. + + +
+
+ + + Timeout wait events + + Timeout <structname>wait_event</structname> Description + + + + + Wait Event Name + Description + + + - Timeout BaseBackupThrottle Waiting during base backup when throttling activity. @@ -1417,8 +1505,25 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser RecoveryApplyDelayWaiting to apply WAL at recovery because it is delayed. + + +
+
+ + + IO wait events + + IO <structname>wait_event</structname> Description + + + + + Wait Event Name + Description + + + - IO BufFileRead Waiting for a read from a buffered file. @@ -1713,8 +1818,12 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i (2 rows) + + -
+ + pg_stat_replication +
<structname>pg_stat_replication</structname> View @@ -1961,8 +2070,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i as missing data, zero or continue to display the last known value. + -
+ + pg_stat_wal_receiver +
<structname>pg_stat_wal_receiver</structname> View @@ -2071,8 +2183,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i one row, showing statistics about the WAL receiver from that receiver's connected server. + -
+ + pg_stat_subcription +
<structname>pg_stat_subscription</structname> View @@ -2144,8 +2259,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i not running), and additional rows for workers handling the initial data copy of the subscribed tables. + -
+ + pg_stat_ssl +
<structname>pg_stat_ssl</structname> View @@ -2213,9 +2331,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i pid column to get more details about the connection. + - -
+ + pg_stat_archiver +
<structname>pg_stat_archiver</structname> View @@ -2271,8 +2391,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i The pg_stat_archiver view will always have a single row, containing data about the archiver process of the cluster. - -
+ + + + pg_stat_bgwriter +
<structname>pg_stat_bgwriter</structname> View @@ -2358,8 +2481,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i The pg_stat_bgwriter view will always have a single row, containing global data for the cluster. + -
+ + pg_stat_database +
<structname>pg_stat_database</structname> View @@ -2495,8 +2621,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i The pg_stat_database view will contain one row for each database in the cluster, showing database-wide statistics. + -
+ + pg_stat_database_conflicts +
<structname>pg_stat_database_conflicts</structname> View @@ -2559,8 +2688,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i This view will only contain information on standby servers, since conflicts do not occur on master servers. + -
+ + pg_stat_all_tables +
<structname>pg_stat_all_tables</structname> View @@ -2702,8 +2834,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i contain the same information, but filtered to only show user and system tables respectively. + -
+ + pg_stat_all_indexes +
<structname>pg_stat_all_indexes</structname> View @@ -2798,8 +2933,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i heap fetches are avoided by means of an index-only scan. + -
+ + pg_statio_all_tables +
<structname>pg_statio_all_tables</structname> View @@ -2879,8 +3017,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i contain the same information, but filtered to only show user and system tables respectively. + -
+ + pg_statio_all_indexes +
<structname>pg_statio_all_indexes</structname> View @@ -2940,8 +3081,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i contain the same information, but filtered to only show user and system indexes respectively. + -
+ + pg_statio_all_sequences +
<structname>pg_statio_all_sequences</structname> View @@ -2987,8 +3131,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i one row for each sequence in the current database, showing statistics about I/O on that specific sequence. + -
+ + pg_stat_user_functions +
<structname>pg_stat_user_functions</structname> View @@ -3042,6 +3189,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i that function. The parameter controls exactly which functions are tracked. + @@ -3259,7 +3407,7 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid, pg_stat_get_backend_wait_event_type(integer) text Wait event type name if backend is currently waiting, otherwise NULL. - See for details. + See for details. @@ -3267,7 +3415,7 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid, pg_stat_get_backend_wait_event(integer) text Wait event name if backend is currently waiting, otherwise NULL. - See for details. + See for details.