model-writtenrun 3041 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Anton Voloshin reported that the first end-of-WAL test could stop exactly at a page boundary and encounter an invalid page magic number instead of the expected zero record length; he supplied a reproducer explicitly excluded from commitment and alternative fixes to avoid that boundary or accept either error #1.
- Thomas Munro argued that accepting either error would weaken the test and suggested emitting an additional empty logical message after advancing away from the record-splitting zone; Anton tested that approach, could no longer reproduce the failure, and preferred it #2 #4.
- The issue resurfaced on buildfarm animal skimmer in May: Thomas and Tom Lane connected it to changes in initdb-generated WAL, David Rowley observed that a subsequent catalog change made it disappear, and Tom and Anton identified locale counts and username lengths as sources of system-dependent WAL positioning #5 #6 #7 #8 #9.
- Nathan Bossart reported the same failure on his laptop in August, prompting Thomas to resume work and submit a different fix that switches WAL files before testing to make the initial position consistent across systems #10 #11 #12.
- Tom Lane and Nathan endorsed the new patch, with Tom requesting an explanatory comment; Thomas committed it with that comment as ecd56459cf, backpatched it to all supported releases, and announced the push #13 #14 #15.
- Christoph Berg subsequently reported a PostgreSQL 13.17 failure on Debian bullseye before any subtests ran; Thomas traced the error to opening a server header through scan_server_header(), rather than the WAL-boundary assertion #16 #17.
- After Thomas requested reproduction details, Christoph confirmed that Debian’s older directory-layout patch made pg_config report an installed header directory even for a temporary build tree; he attributed the failure to Debian packaging and said the newer packaging had already fixed it, leaving no further upstream change requested in the thread #18 #19 #20.