diff options
author | Thomas Munro <tmunro@postgresql.org> | 2022-03-16 15:37:15 +1300 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2022-03-16 15:37:15 +1300 |
commit | cfdb303be756d846031ba1c1d1ff2cae39a62c15 (patch) | |
tree | 079f0faab13bce0ae2fb6814198edfe1df2772d4 /doc/src | |
parent | d3a9b83c30b62898f6823d127c6b6ddef98f7cba (diff) | |
download | postgresql-cfdb303be756d846031ba1c1d1ff2cae39a62c15.tar.gz postgresql-cfdb303be756d846031ba1c1d1ff2cae39a62c15.zip |
Fix waiting in RegisterSyncRequest().
If we run out of space in the checkpointer sync request queue (which is
hopefully rare on real systems, but common with very small buffer pool),
we wait for it to drain. While waiting, we should report that as a wait
event so that users know what is going on, and also handle postmaster
death, since otherwise the loop might never terminate if the
checkpointer has exited.
Back-patch to 12. Although the problem exists in earlier releases too,
the code is structured differently before 12 so I haven't gone any
further for now, in the absence of field complaints.
Reported-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20220226213942.nb7uvb2pamyu26dj%40alap3.anarazel.de
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/monitoring.sgml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 6abb29ecafe..7b6ea8b24df 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -2161,6 +2161,11 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser source (<filename>pg_wal</filename>, archive or stream).</entry> </row> <row> + <entry><literal>RegisterSyncRequest</literal></entry> + <entry>Waiting while sending synchronization requests to the + checkpointer, because the request queue is full.</entry> + </row> + <row> <entry><literal>VacuumDelay</literal></entry> <entry>Waiting in a cost-based vacuum delay point.</entry> </row> |