aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-03-16 15:38:13 +1300
committerThomas Munro <tmunro@postgresql.org>2022-03-16 15:38:13 +1300
commit368ffdeee422e8df57330a290f32b986291c2584 (patch)
treeca63ebc659ee6b1ad9852fc56561e224dc8a8dc0 /src/tutorial/funcs.source
parentaf8a8eb54245b2f24bbe1b93811fffbb71cca235 (diff)
downloadpostgresql-368ffdeee422e8df57330a290f32b986291c2584.tar.gz
postgresql-368ffdeee422e8df57330a290f32b986291c2584.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 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions