summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-05-08 23:05:58 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-05-08 23:06:40 -0400
commitacd4c7d58baf09fc278a0f8c1170fba2d56ccdd5 (patch)
tree67a9b17ba1bfa2b5414460287b6928b77d78f5d8 /src/include
parent8b77e226fbf4834a03fcef2fa31aa85dac40c941 (diff)
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.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/access/xlog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index 129712e7b9c..df5f232eeea 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -316,6 +316,7 @@ extern TimeLineID GetRecoveryTargetTLI(void);
extern bool CheckPromoteSignal(void);
extern void WakeupRecovery(void);
+extern void SetWalWriterSleeping(bool sleeping);
/*
* Starting/stopping a base backup