summaryrefslogtreecommitdiff
path: root/src/include/access/xlog.h
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2011-11-13 09:00:57 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2011-11-13 09:00:57 +0000
commit4de82f7d7c50a81ec8e70e2cb0ab413ab9134c0b (patch)
tree7ee129540269debbdf22771e1e99244445213e6a /src/include/access/xlog.h
parent02d88efea1f719e59ce684c2e14bad23d55fdd15 (diff)
Wakeup WALWriter as needed for asynchronous commit performance.
Previously we waited for wal_writer_delay before flushing WAL. Now we also wake WALWriter as soon as a WAL buffer page has filled. Significant effect observed on performance of asynchronous commits by Robert Haas, attributed to the ability to set hint bits on tuples earlier and so reducing contention caused by clog lookups.
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r--src/include/access/xlog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index 83106b80e4e..6344a850dcd 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -16,6 +16,7 @@
#include "datatype/timestamp.h"
#include "lib/stringinfo.h"
#include "storage/buf.h"
+#include "storage/latch.h"
#include "utils/pg_crc.h"
/*
@@ -319,6 +320,7 @@ extern TimeLineID GetRecoveryTargetTLI(void);
extern bool CheckPromoteSignal(void);
extern void WakeupRecovery(void);
+extern Latch *WALWriterLatch(void);
/*
* Starting/stopping a base backup