model-writtenrun 7044 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vignesh C traced a buildfarm hang to logical decoding waiting for the missing continuation of a partially written WAL record and proposed reading the page header before requesting the remaining record data; he also supplied a previously reverted logical-slot test that reproduced the problem intermittently #1.
- Michael Paquier requested validating the continuation length before the second read, and Dilip Kumar agreed after discussing which fields were already available; Vignesh incorporated that ordering and registered the restored test with Meson #2 #5 #6 #8.
- Hayato Kuroda investigated deterministic injection-point testing, but the WAL write behavior made it difficult, and Michael agreed to reuse the intermittent logical-slot test rather than add a narrowly tailored injection point #7 #9.
- Hayato and Michael questioned the extra read's performance cost, while Vignesh defended the existing assertion placement and reported benchmarks showing no noticeable overhead across varied logical-message sizes #3 #10 #11.
- When Vignesh could not reproduce the failure on PostgreSQL 17, Hayato found that its workload did not produce the same large hint records and supplied an inline pg_logical_emit_message() addition that reproduced the hang; Vignesh then submitted branch-specific fixes and another reproducer covering versions through PostgreSQL 13 #12 #14 #15.
- Michael's further benchmarks also found negligible overhead, but his review identified a missing checkpoint-completion wait in the test; he reorganized the work into the header fix, restoration of the logical-slot test on newer branches, improvements to its existing PostgreSQL 17 version, and stabilization of the physical-slot test #17.
- Hayato tested and endorsed Michael's revision, and Michael explained that generating the long logical message before releasing the checkpoint increased the chance of reproducing the partial-record failure without requiring an explicit flush #18 #21.
- Alexander Korotkov took over the final review and commit work, then submitted a revision containing only comment and commit-message improvements #19 #20 #22.
- The header-first WAL reader fix from Alexander's final series landed as 5449d5b7ae, preserving Vignesh's implementation and the reviewed validation ordering; although the problem originated in thread #242796, the later matching patch series was developed here #22.
- The PostgreSQL 17 logical-slot test improvement landed as 6aefde2a2d, adding the long logical message and checkpoint-completion wait described in the final series and crediting Alexander and Hayato #22.
- The separate physical-slot test stabilization landed as ccd9451593, making the test explicitly wait for checkpoint completion before immediate shutdown; Alexander's earlier work in thread #242796 was incorporated into Michael's series and Alexander's final revision here #17 #22.
- After the commits, Tom Lane reported renewed PostgreSQL 17 buildfarm hangs and a local sanitizer-assisted reproduction; Alexander identified an accidentally omitted PostgreSQL 17 backpatch of the reader fix and said he would correct it, and Tom accepted the explanation while noting that the test had demonstrated its effectiveness #23 #24 #25.