Fix an issue in recent walwriter hibernation patch.

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

Commit: acd4c7d58baf09fc278a0f8c1170fba2d56ccdd5
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-05-09T03:06:40Z
Releases: 9.2.0
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

PathChange+/−
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