Skip to content

Mdb 17 11 wal flusher - #109

Open
reshke wants to merge 6 commits into
MDB_17_11_sa_newfrom
MDB_17_11_wal_flusher
Open

Mdb 17 11 wal flusher#109
reshke wants to merge 6 commits into
MDB_17_11_sa_newfrom
MDB_17_11_wal_flusher

Conversation

@reshke

@reshke reshke commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

No description provided.

x4m and others added 6 commits August 19, 2026 15:41
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