mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +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:
@ -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
|
||||
|
Reference in New Issue
Block a user