Skip to content

Wal flush - #103

Open
reshke wants to merge 5 commits into
MDB_18_5from
wal_flush
Open

Wal flush#103
reshke wants to merge 5 commits into
MDB_18_5from
wal_flush

Conversation

@reshke

@reshke reshke commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

No description provided.

x4m and others added 5 commits August 12, 2026 13:30
The walreceiver receives, writes and fsyncs in one loop, and recovery may
not touch a byte until it is durable, so replay is serialized behind the
fsync.  Read up to what has been written instead, and keep the
write-ahead rule where the primary keeps it: a page modified by a
replayed record is held back from disk, and pg_control is held back from
recording progress, until the WAL behind it is on disk.

Cuts median replay lag by 63% on pgbench at a fixed 10k tps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants