Teach RequestCheckpoint() to wait and retry a few times if it can't signal
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Nov 2008 01:40:19 +0000 (01:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Nov 2008 01:40:19 +0000 (01:40 +0000)
commit6b66d7ee8b890e51feba79a51997b8929786b59b
tree8396c6921028960e39b7a5ecb013997c846ff140
parent10082916d06f701b8e73c33cba2cdb5e98b72fed
Teach RequestCheckpoint() to wait and retry a few times if it can't signal
the bgwriter immediately.  This covers the case where the bgwriter is still
starting up, as seen in a recent buildfarm failure.  In future it might also
assist with clean recovery after a bgwriter termination and restart ---
right now the postmaster treats early bgwriter exit as a system crash,
but that might not always be so.
src/backend/postmaster/bgwriter.c