Teach RequestCheckpoint() to wait and retry a few times if it can't signal

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6f6a6d8b140393c974ec5ae65c6c605e70d08034
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-11-23T01:40:19Z
Releases: 8.4.0
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.

Files

PathChange+/−
src/backend/postmaster/bgwriter.c modified +33 −9