Fix an issue in recent walwriter hibernation patch.
Tom Lane <tgl@sss.pgh.pa.us>
Fix an issue in recent walwriter hibernation patch. Users of asynchronous-commit mode expect there to be a guaranteed maximum delay before an async commit's WAL records get flushed to disk. The original version of the walwriter hibernation patch broke that. Add an extra shared-memory flag to allow async commits to kick the walwriter out of hibernation mode, without adding any noticeable overhead in cases where no action is needed.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +41 −7 |
| src/backend/postmaster/walwriter.c | modified | +18 −0 |
| src/include/access/xlog.h | modified | +1 −0 |