| 1 |
# |
| 2 |
# wait_event_names.txt |
| 3 |
# PostgreSQL wait events |
| 4 |
# |
| 5 |
# Copyright (c) 2023-2025, PostgreSQL Global Development Group |
| 6 |
# |
| 7 |
# This list serves as the basis for generating source and documentation files |
| 8 |
# related to wait events. |
| 9 |
# |
| 10 |
# This file defines one wait event per line, with the following |
| 11 |
# tab-separated fields: |
| 12 |
# |
| 13 |
# "Typedef enum definitions" "description in the docs" |
| 14 |
# |
| 15 |
# The files generated from this one are: |
| 16 |
# |
| 17 |
# wait_event_types.h |
| 18 |
# typedef enum definitions for wait events. |
| 19 |
# |
| 20 |
# pgstat_wait_event.c |
| 21 |
# C functions to get the wait event name based on the enum. |
| 22 |
# |
| 23 |
# wait_event_types.sgml |
| 24 |
# SGML tables of wait events for inclusion in the documentation. |
| 25 |
# |
| 26 |
# When adding a new wait event, make sure it is placed in the appropriate |
| 27 |
# ClassName section. |
| 28 |
# |
| 29 |
# Wait events added in stable branches should be appended to the lists in |
| 30 |
# the "ABI_compatibility:" region of their related ClassName section to |
| 31 |
# preserve ABI compatibility of the C code generated from this file's data, |
| 32 |
# respecting the order of any wait event already listed there. The |
| 33 |
# "ABI_compatibility:" regions should remain empty on the master branch and |
| 34 |
# on unreleased branches. |
| 35 |
# |
| 36 |
# WaitEventLWLock and WaitEventLock have their own C code for their wait event |
| 37 |
# enums and function names. Hence, for these, only the SGML documentation is |
| 38 |
# generated. |
| 39 |
# |
| 40 |
# This file is fed to src/backend/utils/activity/generate-wait_event_types.pl. |
| 41 |
# |
| 42 |
|
| 43 |
|
| 44 |
# |
| 45 |
# Wait Events - Activity |
| 46 |
# |
| 47 |
# Use this category when a process is waiting because it has no work to do, |
| 48 |
# unless the "Client" or "Timeout" category describes the situation better. |
| 49 |
# Typically, this should only be used for background processes. |
| 50 |
# |
| 51 |
|
| 52 |
Section: ClassName - WaitEventActivity |
| 53 |
|
| 54 |
ARCHIVER_MAIN "Waiting in main loop of archiver process." |
| 55 |
AUTOVACUUM_MAIN "Waiting in main loop of autovacuum launcher process." |
| 56 |
BGWRITER_HIBERNATE "Waiting in background writer process, hibernating." |
| 57 |
BGWRITER_MAIN "Waiting in main loop of background writer process." |
| 58 |
CHECKPOINTER_MAIN "Waiting in main loop of checkpointer process." |
| 59 |
CHECKPOINTER_SHUTDOWN "Waiting for checkpointer process to be terminated." |
| 60 |
IO_WORKER_MAIN "Waiting in main loop of IO Worker process." |
| 61 |
LOGICAL_APPLY_MAIN "Waiting in main loop of logical replication apply process." |
| 62 |
LOGICAL_LAUNCHER_MAIN "Waiting in main loop of logical replication launcher process." |
| 63 |
LOGICAL_PARALLEL_APPLY_MAIN "Waiting in main loop of logical replication parallel apply process." |
| 64 |
RECOVERY_WAL_STREAM "Waiting in main loop of startup process for WAL to arrive, during streaming recovery." |
| 65 |
REPLICATION_SLOTSYNC_MAIN "Waiting in main loop of slot sync worker." |
| 66 |
REPLICATION_SLOTSYNC_SHUTDOWN "Waiting for slot sync worker to shut down." |
| 67 |
SYSLOGGER_MAIN "Waiting in main loop of syslogger process." |
| 68 |
WAL_RECEIVER_MAIN "Waiting in main loop of WAL receiver process." |
| 69 |
WAL_SENDER_MAIN "Waiting in main loop of WAL sender process." |
| 70 |
WAL_SUMMARIZER_WAL "Waiting in WAL summarizer for more WAL to be generated." |
| 71 |
WAL_WRITER_MAIN "Waiting in main loop of WAL writer process." |
| 72 |
|
| 73 |
ABI_compatibility: |
| 74 |
|
| 75 |
# |
| 76 |
# Wait Events - Client |
| 77 |
# |
| 78 |
# Use this category when a process is waiting to send data to or receive data |
| 79 |
# from the frontend process to which it is connected. This is never used for |
| 80 |
# a background process, which has no client connection. |
| 81 |
# |
| 82 |
|
| 83 |
Section: ClassName - WaitEventClient |
| 84 |
|
| 85 |
CLIENT_READ "Waiting to read data from the client." |
| 86 |
CLIENT_WRITE "Waiting to write data to the client." |
| 87 |
GSS_OPEN_SERVER "Waiting to read data from the client while establishing a GSSAPI session." |
| 88 |
LIBPQWALRECEIVER_CONNECT "Waiting in WAL receiver to establish connection to remote server." |
| 89 |
LIBPQWALRECEIVER_RECEIVE "Waiting in WAL receiver to receive data from remote server." |
| 90 |
SSL_OPEN_SERVER "Waiting for SSL while attempting connection." |
| 91 |
WAIT_FOR_STANDBY_CONFIRMATION "Waiting for WAL to be received and flushed by the physical standby." |
| 92 |
WAL_SENDER_WAIT_FOR_WAL "Waiting for WAL to be flushed in WAL sender process." |
| 93 |
WAL_SENDER_WRITE_DATA "Waiting for any activity when processing replies from WAL receiver in WAL sender process." |
| 94 |
|
| 95 |
ABI_compatibility: |
| 96 |
|
| 97 |
# |
| 98 |
# Wait Events - IPC |
| 99 |
# |
| 100 |
# Use this category when a process cannot complete the work it is doing because |
| 101 |
# it is waiting for a notification from another process. |
| 102 |
# |
| 103 |
|
| 104 |
Section: ClassName - WaitEventIPC |
| 105 |
|
| 106 |
APPEND_READY "Waiting for subplan nodes of an <literal>Append</literal> plan node to be ready." |
| 107 |
ARCHIVE_CLEANUP_COMMAND "Waiting for <xref linkend="guc-archive-cleanup-command"/> to complete." |
| 108 |
ARCHIVE_COMMAND "Waiting for <xref linkend="guc-archive-command"/> to complete." |
| 109 |
BACKEND_TERMINATION "Waiting for the termination of another backend." |
| 110 |
BACKUP_WAIT_WAL_ARCHIVE "Waiting for WAL files required for a backup to be successfully archived." |
| 111 |
BGWORKER_SHUTDOWN "Waiting for background worker to shut down." |
| 112 |
BGWORKER_STARTUP "Waiting for background worker to start up." |
| 113 |
BTREE_PAGE "Waiting for the page number needed to continue a parallel B-tree scan to become available." |
| 114 |
BUFFER_IO "Waiting for buffer I/O to complete." |
| 115 |
CHECKPOINT_DELAY_COMPLETE "Waiting for a backend that blocks a checkpoint from completing." |
| 116 |
CHECKPOINT_DELAY_START "Waiting for a backend that blocks a checkpoint from starting." |
| 117 |
CHECKPOINT_DONE "Waiting for a checkpoint to complete." |
| 118 |
CHECKPOINT_START "Waiting for a checkpoint to start." |
| 119 |
EXECUTE_GATHER "Waiting for activity from a child process while executing a <literal>Gather</literal> plan node." |
| 120 |
HASH_BATCH_ALLOCATE "Waiting for an elected Parallel Hash participant to allocate a hash table." |
| 121 |
HASH_BATCH_ELECT "Waiting to elect a Parallel Hash participant to allocate a hash table." |
| 122 |
HASH_BATCH_LOAD "Waiting for other Parallel Hash participants to finish loading a hash table." |
| 123 |
HASH_BUILD_ALLOCATE "Waiting for an elected Parallel Hash participant to allocate the initial hash table." |
| 124 |
HASH_BUILD_ELECT "Waiting to elect a Parallel Hash participant to allocate the initial hash table." |
| 125 |
HASH_BUILD_HASH_INNER "Waiting for other Parallel Hash participants to finish hashing the inner relation." |
| 126 |
HASH_BUILD_HASH_OUTER "Waiting for other Parallel Hash participants to finish partitioning the outer relation." |
| 127 |
HASH_GROW_BATCHES_DECIDE "Waiting to elect a Parallel Hash participant to decide on future batch growth." |
| 128 |
HASH_GROW_BATCHES_ELECT "Waiting to elect a Parallel Hash participant to allocate more batches." |
| 129 |
HASH_GROW_BATCHES_FINISH "Waiting for an elected Parallel Hash participant to decide on future batch growth." |
| 130 |
HASH_GROW_BATCHES_REALLOCATE "Waiting for an elected Parallel Hash participant to allocate more batches." |
| 131 |
HASH_GROW_BATCHES_REPARTITION "Waiting for other Parallel Hash participants to finish repartitioning." |
| 132 |
HASH_GROW_BUCKETS_ELECT "Waiting to elect a Parallel Hash participant to allocate more buckets." |
| 133 |
HASH_GROW_BUCKETS_REALLOCATE "Waiting for an elected Parallel Hash participant to finish allocating more buckets." |
| 134 |
HASH_GROW_BUCKETS_REINSERT "Waiting for other Parallel Hash participants to finish inserting tuples into new buckets." |
| 135 |
LOGICAL_APPLY_SEND_DATA "Waiting for a logical replication leader apply process to send data to a parallel apply process." |
| 136 |
LOGICAL_PARALLEL_APPLY_STATE_CHANGE "Waiting for a logical replication parallel apply process to change state." |
| 137 |
LOGICAL_SYNC_DATA "Waiting for a logical replication remote server to send data for initial table synchronization." |
| 138 |
LOGICAL_SYNC_STATE_CHANGE "Waiting for a logical replication remote server to change state." |
| 139 |
MESSAGE_QUEUE_INTERNAL "Waiting for another process to be attached to a shared message queue." |
| 140 |
MESSAGE_QUEUE_PUT_MESSAGE "Waiting to write a protocol message to a shared message queue." |
| 141 |
MESSAGE_QUEUE_RECEIVE "Waiting to receive bytes from a shared message queue." |
| 142 |
MESSAGE_QUEUE_SEND "Waiting to send bytes to a shared message queue." |
| 143 |
MULTIXACT_CREATION "Waiting for a multixact creation to complete." |
| 144 |
PARALLEL_BITMAP_SCAN "Waiting for parallel bitmap scan to become initialized." |
| 145 |
PARALLEL_CREATE_INDEX_SCAN "Waiting for parallel <command>CREATE INDEX</command> workers to finish heap scan." |
| 146 |
PARALLEL_FINISH "Waiting for parallel workers to finish computing." |
| 147 |
PROCARRAY_GROUP_UPDATE "Waiting for the group leader to clear the transaction ID at transaction end." |
| 148 |
PROC_SIGNAL_BARRIER "Waiting for a barrier event to be processed by all backends." |
| 149 |
PROMOTE "Waiting for standby promotion." |
| 150 |
RECOVERY_CONFLICT_SNAPSHOT "Waiting for recovery conflict resolution for a vacuum cleanup." |
| 151 |
RECOVERY_CONFLICT_TABLESPACE "Waiting for recovery conflict resolution for dropping a tablespace." |
| 152 |
RECOVERY_END_COMMAND "Waiting for <xref linkend="guc-recovery-end-command"/> to complete." |
| 153 |
RECOVERY_PAUSE "Waiting for recovery to be resumed." |
| 154 |
REPLICATION_ORIGIN_DROP "Waiting for a replication origin to become inactive so it can be dropped." |
| 155 |
REPLICATION_SLOT_DROP "Waiting for a replication slot to become inactive so it can be dropped." |
| 156 |
RESTORE_COMMAND "Waiting for <xref linkend="guc-restore-command"/> to complete." |
| 157 |
SAFE_SNAPSHOT "Waiting to obtain a valid snapshot for a <literal>READ ONLY DEFERRABLE</literal> transaction." |
| 158 |
SYNC_REP "Waiting for confirmation from a remote server during synchronous replication." |
| 159 |
WAL_RECEIVER_EXIT "Waiting for the WAL receiver to exit." |
| 160 |
WAL_RECEIVER_WAIT_START "Waiting for startup process to send initial data for streaming replication." |
| 161 |
WAL_SUMMARY_READY "Waiting for a new WAL summary to be generated." |
| 162 |
XACT_GROUP_UPDATE "Waiting for the group leader to update transaction status at transaction end." |
| 163 |
|
| 164 |
ABI_compatibility: |
| 165 |
WAL_RECEIVER_UPSTREAM_CATCHUP "Waiting for upstream server WAL flush position to catch up to requested start point." |
| 166 |
|
| 167 |
# |
| 168 |
# Wait Events - Timeout |
| 169 |
# |
| 170 |
# Use this category when a process is waiting for a timeout to expire. |
| 171 |
# |
| 172 |
|
| 173 |
Section: ClassName - WaitEventTimeout |
| 174 |
|
| 175 |
BASE_BACKUP_THROTTLE "Waiting during base backup when throttling activity." |
| 176 |
CHECKPOINT_WRITE_DELAY "Waiting between writes while performing a checkpoint." |
| 177 |
PG_SLEEP "Waiting due to a call to <function>pg_sleep</function> or a sibling function." |
| 178 |
RECOVERY_APPLY_DELAY "Waiting to apply WAL during recovery because of a delay setting." |
| 179 |
RECOVERY_RETRIEVE_RETRY_INTERVAL "Waiting during recovery when WAL data is not available from any source (<filename>pg_wal</filename>, archive or stream)." |
| 180 |
REGISTER_SYNC_REQUEST "Waiting while sending synchronization requests to the checkpointer, because the request queue is full." |
| 181 |
SPIN_DELAY "Waiting while acquiring a contended spinlock." |
| 182 |
VACUUM_DELAY "Waiting in a cost-based vacuum delay point." |
| 183 |
VACUUM_TRUNCATE "Waiting to acquire an exclusive lock to truncate off any empty pages at the end of a table vacuumed." |
| 184 |
WAL_SUMMARIZER_ERROR "Waiting after a WAL summarizer error." |
| 185 |
|
| 186 |
ABI_compatibility: |
| 187 |
|
| 188 |
# |
| 189 |
# Wait Events - IO |
| 190 |
# |
| 191 |
# Use this category when a process is waiting for a IO. |
| 192 |
# |
| 193 |
|
| 194 |
Section: ClassName - WaitEventIO |
| 195 |
|
| 196 |
AIO_IO_COMPLETION "Waiting for another process to complete IO." |
| 197 |
AIO_IO_URING_SUBMIT "Waiting for IO submission via io_uring." |
| 198 |
AIO_IO_URING_EXECUTION "Waiting for IO execution via io_uring." |
| 199 |
BASEBACKUP_READ "Waiting for base backup to read from a file." |
| 200 |
BASEBACKUP_SYNC "Waiting for data written by a base backup to reach durable storage." |
| 201 |
BASEBACKUP_WRITE "Waiting for base backup to write to a file." |
| 202 |
BUFFILE_READ "Waiting for a read from a buffered file." |
| 203 |
BUFFILE_WRITE "Waiting for a write to a buffered file." |
| 204 |
BUFFILE_TRUNCATE "Waiting for a buffered file to be truncated." |
| 205 |
CONTROL_FILE_READ "Waiting for a read from the <filename>pg_control</filename> file." |
| 206 |
CONTROL_FILE_SYNC "Waiting for the <filename>pg_control</filename> file to reach durable storage." |
| 207 |
CONTROL_FILE_SYNC_UPDATE "Waiting for an update to the <filename>pg_control</filename> file to reach durable storage." |
| 208 |
CONTROL_FILE_WRITE "Waiting for a write to the <filename>pg_control</filename> file." |
| 209 |
CONTROL_FILE_WRITE_UPDATE "Waiting for a write to update the <filename>pg_control</filename> file." |
| 210 |
COPY_FILE_COPY "Waiting for a file copy operation." |
| 211 |
COPY_FILE_READ "Waiting for a read during a file copy operation." |
| 212 |
COPY_FILE_WRITE "Waiting for a write during a file copy operation." |
| 213 |
DATA_FILE_EXTEND "Waiting for a relation data file to be extended." |
| 214 |
DATA_FILE_FLUSH "Waiting for a relation data file to reach durable storage." |
| 215 |
DATA_FILE_IMMEDIATE_SYNC "Waiting for an immediate synchronization of a relation data file to durable storage." |
| 216 |
DATA_FILE_PREFETCH "Waiting for an asynchronous prefetch from a relation data file." |
| 217 |
DATA_FILE_READ "Waiting for a read from a relation data file." |
| 218 |
DATA_FILE_SYNC "Waiting for changes to a relation data file to reach durable storage." |
| 219 |
DATA_FILE_TRUNCATE "Waiting for a relation data file to be truncated." |
| 220 |
DATA_FILE_WRITE "Waiting for a write to a relation data file." |
| 221 |
DSM_ALLOCATE "Waiting for a dynamic shared memory segment to be allocated." |
| 222 |
DSM_FILL_ZERO_WRITE "Waiting to fill a dynamic shared memory backing file with zeroes." |
| 223 |
LOCK_FILE_ADDTODATADIR_READ "Waiting for a read while adding a line to the data directory lock file." |
| 224 |
LOCK_FILE_ADDTODATADIR_SYNC "Waiting for data to reach durable storage while adding a line to the data directory lock file." |
| 225 |
LOCK_FILE_ADDTODATADIR_WRITE "Waiting for a write while adding a line to the data directory lock file." |
| 226 |
LOCK_FILE_CREATE_READ "Waiting to read while creating the data directory lock file." |
| 227 |
LOCK_FILE_CREATE_SYNC "Waiting for data to reach durable storage while creating the data directory lock file." |
| 228 |
LOCK_FILE_CREATE_WRITE "Waiting for a write while creating the data directory lock file." |
| 229 |
LOCK_FILE_RECHECKDATADIR_READ "Waiting for a read during recheck of the data directory lock file." |
| 230 |
LOGICAL_REWRITE_CHECKPOINT_SYNC "Waiting for logical rewrite mappings to reach durable storage during a checkpoint." |
| 231 |
LOGICAL_REWRITE_MAPPING_SYNC "Waiting for mapping data to reach durable storage during a logical rewrite." |
| 232 |
LOGICAL_REWRITE_MAPPING_WRITE "Waiting for a write of mapping data during a logical rewrite." |
| 233 |
LOGICAL_REWRITE_SYNC "Waiting for logical rewrite mappings to reach durable storage." |
| 234 |
LOGICAL_REWRITE_TRUNCATE "Waiting for truncate of mapping data during a logical rewrite." |
| 235 |
LOGICAL_REWRITE_WRITE "Waiting for a write of logical rewrite mappings." |
| 236 |
RELATION_MAP_READ "Waiting for a read of the relation map file." |
| 237 |
RELATION_MAP_REPLACE "Waiting for durable replacement of a relation map file." |
| 238 |
RELATION_MAP_WRITE "Waiting for a write to the relation map file." |
| 239 |
REORDER_BUFFER_READ "Waiting for a read during reorder buffer management." |
| 240 |
REORDER_BUFFER_WRITE "Waiting for a write during reorder buffer management." |
| 241 |
REORDER_LOGICAL_MAPPING_READ "Waiting for a read of a logical mapping during reorder buffer management." |
| 242 |
REPLICATION_SLOT_READ "Waiting for a read from a replication slot control file." |
| 243 |
REPLICATION_SLOT_RESTORE_SYNC "Waiting for a replication slot control file to reach durable storage while restoring it to memory." |
| 244 |
REPLICATION_SLOT_SYNC "Waiting for a replication slot control file to reach durable storage." |
| 245 |
REPLICATION_SLOT_WRITE "Waiting for a write to a replication slot control file." |
| 246 |
SLRU_FLUSH_SYNC "Waiting for SLRU data to reach durable storage during a checkpoint or database shutdown." |
| 247 |
SLRU_READ "Waiting for a read of an SLRU page." |
| 248 |
SLRU_SYNC "Waiting for SLRU data to reach durable storage following a page write." |
| 249 |
SLRU_WRITE "Waiting for a write of an SLRU page." |
| 250 |
SNAPBUILD_READ "Waiting for a read of a serialized historical catalog snapshot." |
| 251 |
SNAPBUILD_SYNC "Waiting for a serialized historical catalog snapshot to reach durable storage." |
| 252 |
SNAPBUILD_WRITE "Waiting for a write of a serialized historical catalog snapshot." |
| 253 |
TIMELINE_HISTORY_FILE_SYNC "Waiting for a timeline history file received via streaming replication to reach durable storage." |
| 254 |
TIMELINE_HISTORY_FILE_WRITE "Waiting for a write of a timeline history file received via streaming replication." |
| 255 |
TIMELINE_HISTORY_READ "Waiting for a read of a timeline history file." |
| 256 |
TIMELINE_HISTORY_SYNC "Waiting for a newly created timeline history file to reach durable storage." |
| 257 |
TIMELINE_HISTORY_WRITE "Waiting for a write of a newly created timeline history file." |
| 258 |
TWOPHASE_FILE_READ "Waiting for a read of a two phase state file." |
| 259 |
TWOPHASE_FILE_SYNC "Waiting for a two phase state file to reach durable storage." |
| 260 |
TWOPHASE_FILE_WRITE "Waiting for a write of a two phase state file." |
| 261 |
VERSION_FILE_SYNC "Waiting for the version file to reach durable storage while creating a database." |
| 262 |
VERSION_FILE_WRITE "Waiting for the version file to be written while creating a database." |
| 263 |
WALSENDER_TIMELINE_HISTORY_READ "Waiting for a read from a timeline history file during a walsender timeline command." |
| 264 |
WAL_BOOTSTRAP_SYNC "Waiting for WAL to reach durable storage during bootstrapping." |
| 265 |
WAL_BOOTSTRAP_WRITE "Waiting for a write of a WAL page during bootstrapping." |
| 266 |
WAL_COPY_READ "Waiting for a read when creating a new WAL segment by copying an existing one." |
| 267 |
WAL_COPY_SYNC "Waiting for a new WAL segment created by copying an existing one to reach durable storage." |
| 268 |
WAL_COPY_WRITE "Waiting for a write when creating a new WAL segment by copying an existing one." |
| 269 |
WAL_INIT_SYNC "Waiting for a newly initialized WAL file to reach durable storage." |
| 270 |
WAL_INIT_WRITE "Waiting for a write while initializing a new WAL file." |
| 271 |
WAL_READ "Waiting for a read from a WAL file." |
| 272 |
WAL_SUMMARY_READ "Waiting for a read from a WAL summary file." |
| 273 |
WAL_SUMMARY_WRITE "Waiting for a write to a WAL summary file." |
| 274 |
WAL_SYNC "Waiting for a WAL file to reach durable storage." |
| 275 |
WAL_SYNC_METHOD_ASSIGN "Waiting for data to reach durable storage while assigning a new WAL sync method." |
| 276 |
WAL_WRITE "Waiting for a write to a WAL file." |
| 277 |
|
| 278 |
ABI_compatibility: |
| 279 |
|
| 280 |
# |
| 281 |
# Wait Events - Buffer Pin |
| 282 |
# |
| 283 |
|
| 284 |
Section: ClassName - WaitEventBufferPin |
| 285 |
|
| 286 |
BUFFER_PIN "Waiting to acquire an exclusive pin on a buffer." |
| 287 |
|
| 288 |
ABI_compatibility: |
| 289 |
|
| 290 |
# |
| 291 |
# Wait Events - Extension |
| 292 |
# |
| 293 |
|
| 294 |
Section: ClassName - WaitEventExtension |
| 295 |
|
| 296 |
Extension "Waiting in an extension." |
| 297 |
|
| 298 |
ABI_compatibility: |
| 299 |
|
| 300 |
# |
| 301 |
# Wait Events - LWLock |
| 302 |
# |
| 303 |
# This class of wait events has its own set of C structure, so these are |
| 304 |
# only used for the documentation. |
| 305 |
# |
| 306 |
# NB: Predefined LWLocks (i.e., those declared in lwlocklist.h) must be |
| 307 |
# listed in the top section of locks and must be listed in the same order as in |
| 308 |
# lwlocklist.h. |
| 309 |
# |
| 310 |
|
| 311 |
Section: ClassName - WaitEventLWLock |
| 312 |
|
| 313 |
ShmemIndex "Waiting to find or allocate space in shared memory." |
| 314 |
OidGen "Waiting to allocate a new OID." |
| 315 |
XidGen "Waiting to allocate a new transaction ID." |
| 316 |
ProcArray "Waiting to access the shared per-process data structures (typically, to get a snapshot or report a session's transaction ID)." |
| 317 |
SInvalRead "Waiting to retrieve messages from the shared catalog invalidation queue." |
| 318 |
SInvalWrite "Waiting to add a message to the shared catalog invalidation queue." |
| 319 |
WALBufMapping "Waiting to replace a page in WAL buffers." |
| 320 |
WALWrite "Waiting for WAL buffers to be written to disk." |
| 321 |
ControlFile "Waiting to read or update the <filename>pg_control</filename> file or create a new WAL file." |
| 322 |
MultiXactGen "Waiting to read or update shared multixact state." |
| 323 |
RelCacheInit "Waiting to read or update a <filename>pg_internal.init</filename> relation cache initialization file." |
| 324 |
CheckpointerComm "Waiting to manage fsync requests." |
| 325 |
TwoPhaseState "Waiting to read or update the state of prepared transactions." |
| 326 |
TablespaceCreate "Waiting to create or drop a tablespace." |
| 327 |
BtreeVacuum "Waiting to read or update vacuum-related information for a B-tree index." |
| 328 |
AddinShmemInit "Waiting to manage an extension's space allocation in shared memory." |
| 329 |
Autovacuum "Waiting to read or update the current state of autovacuum workers." |
| 330 |
AutovacuumSchedule "Waiting to ensure that a table selected for autovacuum still needs vacuuming." |
| 331 |
SyncScan "Waiting to select the starting location of a synchronized table scan." |
| 332 |
RelationMapping "Waiting to read or update a <filename>pg_filenode.map</filename> file (used to track the filenode assignments of certain system catalogs)." |
| 333 |
NotifyQueue "Waiting to read or update <command>NOTIFY</command> messages." |
| 334 |
SerializableXactHash "Waiting to read or update information about serializable transactions." |
| 335 |
SerializableFinishedList "Waiting to access the list of finished serializable transactions." |
| 336 |
SerializablePredicateList "Waiting to access the list of predicate locks held by serializable transactions." |
| 337 |
SyncRep "Waiting to read or update information about the state of synchronous replication." |
| 338 |
BackgroundWorker "Waiting to read or update background worker state." |
| 339 |
DynamicSharedMemoryControl "Waiting to read or update dynamic shared memory allocation information." |
| 340 |
AutoFile "Waiting to update the <filename>postgresql.auto.conf</filename> file." |
| 341 |
ReplicationSlotAllocation "Waiting to allocate or free a replication slot." |
| 342 |
ReplicationSlotControl "Waiting to read or update replication slot state." |
| 343 |
CommitTs "Waiting to read or update the last value set for a transaction commit timestamp." |
| 344 |
ReplicationOrigin "Waiting to create, drop or use a replication origin." |
| 345 |
MultiXactTruncation "Waiting to read or truncate multixact information." |
| 346 |
LogicalRepWorker "Waiting to read or update the state of logical replication workers." |
| 347 |
XactTruncation "Waiting to execute <function>pg_xact_status</function> or update the oldest transaction ID available to it." |
| 348 |
WrapLimitsVacuum "Waiting to update limits on transaction id and multixact consumption." |
| 349 |
NotifyQueueTail "Waiting to update limit on <command>NOTIFY</command> message storage." |
| 350 |
WaitEventCustom "Waiting to read or update custom wait events information." |
| 351 |
WALSummarizer "Waiting to read or update WAL summarization state." |
| 352 |
DSMRegistry "Waiting to read or update the dynamic shared memory registry." |
| 353 |
InjectionPoint "Waiting to read or update information related to injection points." |
| 354 |
SerialControl "Waiting to read or update shared <filename>pg_serial</filename> state." |
| 355 |
AioWorkerSubmissionQueue "Waiting to access AIO worker submission queue." |
| 356 |
|
| 357 |
# |
| 358 |
# END OF PREDEFINED LWLOCKS (DO NOT CHANGE THIS LINE) |
| 359 |
# |
| 360 |
# Predefined LWLocks (i.e., those declared in lwlocknames.h) must be listed |
| 361 |
# in the section above and must be listed in the same order as in |
| 362 |
# lwlocknames.h. Other LWLocks must be listed in the section below. |
| 363 |
# |
| 364 |
|
| 365 |
XactBuffer "Waiting for I/O on a transaction status SLRU buffer." |
| 366 |
CommitTsBuffer "Waiting for I/O on a commit timestamp SLRU buffer." |
| 367 |
SubtransBuffer "Waiting for I/O on a sub-transaction SLRU buffer." |
| 368 |
MultiXactOffsetBuffer "Waiting for I/O on a multixact offset SLRU buffer." |
| 369 |
MultiXactMemberBuffer "Waiting for I/O on a multixact member SLRU buffer." |
| 370 |
NotifyBuffer "Waiting for I/O on a <command>NOTIFY</command> message SLRU buffer." |
| 371 |
SerialBuffer "Waiting for I/O on a serializable transaction conflict SLRU buffer." |
| 372 |
WALInsert "Waiting to insert WAL data into a memory buffer." |
| 373 |
BufferContent "Waiting to access a data page in memory." |
| 374 |
ReplicationOriginState "Waiting to read or update the progress of one replication origin." |
| 375 |
ReplicationSlotIO "Waiting for I/O on a replication slot." |
| 376 |
LockFastPath "Waiting to read or update a process' fast-path lock information." |
| 377 |
BufferMapping "Waiting to associate a data block with a buffer in the buffer pool." |
| 378 |
LockManager "Waiting to read or update information about <quote>heavyweight</quote> locks." |
| 379 |
PredicateLockManager "Waiting to access predicate lock information used by serializable transactions." |
| 380 |
ParallelHashJoin "Waiting to synchronize workers during Parallel Hash Join plan execution." |
| 381 |
ParallelBtreeScan "Waiting to synchronize workers during Parallel B-tree scan plan execution." |
| 382 |
ParallelQueryDSA "Waiting for parallel query dynamic shared memory allocation." |
| 383 |
PerSessionDSA "Waiting for parallel query dynamic shared memory allocation." |
| 384 |
PerSessionRecordType "Waiting to access a parallel query's information about composite types." |
| 385 |
PerSessionRecordTypmod "Waiting to access a parallel query's information about type modifiers that identify anonymous record types." |
| 386 |
SharedTupleStore "Waiting to access a shared tuple store during parallel query." |
| 387 |
SharedTidBitmap "Waiting to access a shared TID bitmap during a parallel bitmap index scan." |
| 388 |
ParallelAppend "Waiting to choose the next subplan during Parallel Append plan execution." |
| 389 |
PerXactPredicateList "Waiting to access the list of predicate locks held by the current serializable transaction during a parallel query." |
| 390 |
PgStatsDSA "Waiting for stats dynamic shared memory allocator access." |
| 391 |
PgStatsHash "Waiting for stats shared memory hash table access." |
| 392 |
PgStatsData "Waiting for shared memory stats data access." |
| 393 |
LogicalRepLauncherDSA "Waiting to access logical replication launcher's dynamic shared memory allocator." |
| 394 |
LogicalRepLauncherHash "Waiting to access logical replication launcher's shared hash table." |
| 395 |
DSMRegistryDSA "Waiting to access dynamic shared memory registry's dynamic shared memory allocator." |
| 396 |
DSMRegistryHash "Waiting to access dynamic shared memory registry's shared hash table." |
| 397 |
CommitTsSLRU "Waiting to access the commit timestamp SLRU cache." |
| 398 |
MultiXactOffsetSLRU "Waiting to access the multixact offset SLRU cache." |
| 399 |
MultiXactMemberSLRU "Waiting to access the multixact member SLRU cache." |
| 400 |
NotifySLRU "Waiting to access the <command>NOTIFY</command> message SLRU cache." |
| 401 |
SerialSLRU "Waiting to access the serializable transaction conflict SLRU cache." |
| 402 |
SubtransSLRU "Waiting to access the sub-transaction SLRU cache." |
| 403 |
XactSLRU "Waiting to access the transaction status SLRU cache." |
| 404 |
ParallelVacuumDSA "Waiting for parallel vacuum dynamic shared memory allocation." |
| 405 |
AioUringCompletion "Waiting for another process to complete IO via io_uring." |
| 406 |
|
| 407 |
# No "ABI_compatibility" region here as WaitEventLWLock has its own C code. |
| 408 |
|
| 409 |
# |
| 410 |
# Wait Events - Lock |
| 411 |
# |
| 412 |
# This class of wait events has its own set of C structure, so these are |
| 413 |
# only used for the documentation. |
| 414 |
# |
| 415 |
|
| 416 |
Section: ClassName - WaitEventLock |
| 417 |
|
| 418 |
relation "Waiting to acquire a lock on a relation." |
| 419 |
extend "Waiting to extend a relation." |
| 420 |
frozenid "Waiting to update <structname>pg_database</structname>.<structfield>datfrozenxid</structfield> and <structname>pg_database</structname>.<structfield>datminmxid</structfield>." |
| 421 |
page "Waiting to acquire a lock on a page of a relation." |
| 422 |
tuple "Waiting to acquire a lock on a tuple." |
| 423 |
transactionid "Waiting for a transaction to finish." |
| 424 |
virtualxid "Waiting to acquire a virtual transaction ID lock; see <xref linkend="transaction-id"/>." |
| 425 |
spectoken "Waiting to acquire a speculative insertion lock." |
| 426 |
object "Waiting to acquire a lock on a non-relation database object." |
| 427 |
userlock "Waiting to acquire a user lock." |
| 428 |
advisory "Waiting to acquire an advisory user lock." |
| 429 |
applytransaction "Waiting to acquire a lock on a remote transaction being applied by a logical replication subscriber." |
| 430 |
|
| 431 |
# No "ABI_compatibility" region here as WaitEventLock has its own C code. |