1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-09 22:41:56 +03:00

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.
This commit is contained in:
Simon Riggs
2011-11-13 09:00:57 +00:00
parent 02d88efea1
commit 4de82f7d7c
3 changed files with 44 additions and 18 deletions

View File

@ -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