model-writtenrun 1178 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ayush Tiwari proposed checking MultiXact truncation safety before writing WAL, arguing that a primary skipping deletion after an apparent-wraparound check could diverge from its standby, and attached a draft illustrating the reordered sequence #1.
- Heikki Linnakangas explained that replay also performs wraparound checks, noticed that master still contained a replay-time latest_page_number override already removed on backbranches, and supported exploring earlier checks provided they required little additional code #2.
- Ayush reported inducing the primary-side condition by corrupting latest_page_number with gdb after WAL emission, acknowledged that standby divergence and promotion failure remained untested, and proposed inline PagePrecedes checks before entering the critical section #3.
- Heikki committed the separate replay cleanup as 516310ed4d, removing the latest_page_number override because startup already initializes it correctly, and announced the master landing #4.
- At the thread's close, the replay cleanup had landed, while Ayush's proposed pre-WAL safety checks remained uncommitted and the end-to-end divergence scenario remained unverified #3 #4.