Wait events
wait_event reporting in pg_stat_activity, the pg_wait_events view and custom wait events for extensions. Introduced in PostgreSQL 9.6.
Versions
- PostgreSQL 20 · worked-on · improved · major
- [RFC PATCH v0 0/7] Add EXPLAIN ANALYZE wait event reporting
- Add wait events for server logging destination writes
- [PATCH v1 0/7] Wait event timing and tracing instrumentation
- [PATCH v1] Report specific wait events for libpq cancel requests
- Proposal: expose heavyweight lock wait start time in pg_stat_activity
- PostgreSQL 19 · shipped · improved · minor · 2 commits · +9 / -0 lines
- PostgreSQL 18 · worked-on · new · major
- PostgreSQL 17 · shipped · improved · moderate · 11 commits · +1k / -301 lines
Threads
- Add wait events for server logging destination writes
- [PATCH v1 0/7] Wait event timing and tracing instrumentation
- Reset waitStart when a lock wait fails
- Proposal: expose heavyweight lock wait start time in pg_stat_activity
- Re: First draft of PG 19 release notes
- [RFC PATCH v0 0/7] Add EXPLAIN ANALYZE wait event reporting
- [PATCH v1] Report specific wait events for libpq cancel requests
- remove WaitEventCustomCounterData
- 64-bit wait_event and introduction of 32-bit wait_event_arg
- Fix bug of clearing of waitStart in ProcWakeup()
- Fix pg_stat_get_backend_wait_event() for aux processes
- IO wait events for COPY FROM/TO PROGRAM or file
- static tracepoints in pgstat_report_wait_start/end
- Add wait event for CommitDelay
- Missing wait events (gap analysis)
- Granulaur spinlock wait events
- Adding wait events statistics
- Verify predefined LWLocks tranches have entries in wait_event_names.txt
- Fix lwlock.c and wait_event_names.txt discrepancy
- Avoid circular header file dependency
- Doc: clarify possibility of ephemeral discrepancies between state and wait_event in pg_stat_activity
- lwlocknames.h beautification attempt
- Waits monitoring
- Drop back the redundant "Lock" suffix from LWLock wait event names
- BUG #18728: Inconsistency between pg_wait_events.name and pg_stat_activity.wait_event for LWLocks
- Adding clarification to description of IPC wait events XactGroupUpdate and ProcArrayGroupUpdate
- Autogenerate some wait events code and documentation
- make BuiltinTrancheNames less ugly
- s_lock_test no longer works
- verify predefined LWLocks have entries in wait_event_names.txt
- Exclude generated wait_event files from pgindent
- WIP: new system catalog pg_wait_event
- pgsql: Generate automatically code and documentation related to wait ev
- Wait events for delayed checkpoints
- Rethink the wait event names for postgres_fdw, dblink and etc
- Fix an entry in wait_event_names.txt
- Support to define custom wait events for extensions
- Fix badly generated entries in wait_event_names.txt
- "duplicated" wait events
- Report distinct wait events when waiting for WAL "operation"
- Introduce WAIT_EVENT_EXTENSION and WAIT_EVENT_BUFFER_PIN
- Add wait event for log emission?
- Misleading description for IPC wait events in PostgreSQL documentation
- Orphaned wait event
- perform_spin_delay() vs wait events
- [PATCH] fix wait_event of pg_stat_activity in case of high amount of connections
- wait event and archive_command
- pgsql: Remove unused wait events.
- LogicalChanges* and LogicalSubxact* wait events are never reported
- [Proposal] Add accumulated statistics for wait event
- Making wait events a bit more efficient
- Type of wait events WalReceiverWaitStart and WalSenderWaitForWAL
- adding wait_start column to pg_locks
- Improving LWLock wait events
- Our naming of wait events is a disaster.
- Why are wait events not reported even though it reads/writes a timeline history file?
- Why does [auto-]vacuum delay not report a wait event?
- Wait event that should be reported while waiting for WAL archiving to finish
- RecoveryWalAll and RecoveryWalStream wait events
- wait event docs
- Calling pgstat_report_wait_end() before ereport(ERROR)
- few more wait events to add to docs
- Multiple Wait Events for extensions
- Unordered wait event ClogGroupUpdate
- pgsql: Add wait event for fsync of WAL segments
- Monitoring time of fsyncing WALs
- Registering LWTRANCHE_PARALLEL_HASH_JOIN
- Wait event names mismatch: oldserxid
- User-perspective knowledge about wait events
- Generate wait event list and docs from text file
- Re: exposing wait events for non-backends (was: Tracking wait event for latches)
- pg_stat_activity.waiting_start
- Nested Wait Events?
- RFC: replace pg_stat_activity.waiting with something more descriptive
- [PATCH] Refactoring of LWLock tranches
- Dynamic LWLock tracing via pg_stat_lwlock (proof of concept)
- pg_stat_lwlocks view - lwlocks statistics