]> granicus.if.org Git - postgresql/commit
Fix an issue in recent walwriter hibernation patch.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 9 May 2012 03:05:58 +0000 (23:05 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 9 May 2012 03:06:40 +0000 (23:06 -0400)
commitacd4c7d58baf09fc278a0f8c1170fba2d56ccdd5
tree67a9b17ba1bfa2b5414460287b6928b77d78f5d8
parent8b77e226fbf4834a03fcef2fa31aa85dac40c941
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.
src/backend/access/transam/xlog.c
src/backend/postmaster/walwriter.c
src/include/access/xlog.h