Don't reset 'latest_page_number' when replaying multixid truncation
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Author:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2026-03-22T12:23:54Z
Releases:
19 (unreleased)
Don't reset 'latest_page_number' when replaying multixid truncation 'latest_page_number' is set to the correct value, according to nextOffset, early at system startup. Contrary to the comment, it hence should be set up correctly by the time we get to WAL replay. This was committed to back-branches earlier already (commit 817f74600d), to fix a bug in a backwards-compatibility codepath. We don't have that bug on 'master', but the change nevertheless makes sense on 'master' too. Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru> Reviewed-by: Kirill Reshke <reshkekirill@gmail.com> Discussion: https://www.postgresql.org/message-id/20260214090150.GC2297@p46.dedyn.io;lightning.p46.dedyn.io Discussion: https://www.postgresql.org/message-id/e1787b17-dc93-4621-a5a1-c713d1ac6a1b@iki.fi
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/multixact.c | modified | +0 −10 |
Discussion
- Proposal: Prevent Primary/Standby SLRU divergence during MultiXact truncation 4 messages · 2026-03-16 → 2026-03-22
- 17.8 standby crashes during WAL replay from 17.5 primary: "could not access status of transaction" 9 messages · 2026-02-13 → 2026-02-18