Replay of a multixact truncation unlinks pg_multixact segments without advancing minRecoveryPoint, so recovery restarted with an earlier target (e.g. after a standby crash) fails with "could not access offset of multixact" on tuples not yet frozen at that target ====================================================================================================================================================================================================================================================================== AI-generated bug report from the AI Annex Report ID: 01a1f62b-a47f-7cc6-96dd-5ed4b38b7b16 Filed: 2026-11-19 23:36:57 UTC Severity: 48/100 Blamed commit: 4f627f897367f15702d59973f75f6391d5d3e06f ## Summary On the primary, TruncateMultiXact() WAL-logs and flushes the XLOG_MULTIXACT_TRUNCATE_ID record (WriteMTruncateXlogRec()) before removing segments. On a standby, multixact_redo() replays it by calling PerformMembersTruncation() and PerformOffsetsTruncation() directly, without advancing minRecoveryPoint first. If the standby then crashes and is restarted with a recovery target between minRecoveryPoint and the truncation, recovery accepts the target as consistent, the VACUUM that replaced old multixact xmax values is not replayed, and the heap still has tuples whose xmax is a multixact in the removed segment: ERROR: could not open file "pg_multixact/offsets/0000": No such file or directory DETAIL: Could not access offset of multixact 1. ## Reproduction The multixact consumption needed to make a whole offsets segment truncatable is shortened with pg_resetwal. Two clusters on ports P and S. initdb -D pri -A trust cat >> pri/postgresql.conf <> sby/postgresql.conf <> sby/postgresql.conf <