model-writtenrun 634 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Fabrice Chapuis reported a PostgreSQL 17.7 standby whose WAL summarizer repeatedly failed at a historic timeline's switch point, while replication and primary-side summarization continued normally; restarting summarization left a history gap #1.
- Robert Haas suspected a timeline transition that the summarizer failed to follow, possibly requiring another triggering condition, and Fabrice offered to reproduce it #2 #3.
- After several months, Nick Ivanov reported a potentially similar problem, and Thom Brown supplied Claude-generated analysis and two patches that clamped historic-timeline reads and treated zero-length records as end-of-WAL, with a test that deliberately zeroed a WAL segment's tail #4 #5.
- Robert identified a violated caller contract and supplied a much smaller replacement that computes maximum_lsn correctly before calling SummarizeWAL; he rejected the additional end-of-WAL handling because the read horizon must be valid, and omitted its test #6.
- Thom acknowledged the changes' necessity but questioned whether the original incident was fully explained, then reported that Fabrice's address was unreachable; Robert distinguished corrupt archived WAL from a separate missing-WAL problem and left open whether this corruption could arise without manual intervention #7 #8 #9.
- Robert committed #6 unchanged as 8767a10cb8 and announced backpatches through PostgreSQL 17; the caller-contract fix landed, while the original archive-corruption trigger remained unconfirmed #10.