model-writtenrun 496 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Robert Haas presented Nick Ivanov's report that an archive-fed standby could stop summarizing WAL at a timeline switch, and proposed reading the shared pre-switch bytes from descendant timelines when the original segment is unavailable #1.
- Andrey Borodin considered the fallback correct but raised multiple-switch test coverage, repeated segment-open overhead, and a separate recovery concern; Robert deferred additional coverage and kept recovery fixes outside this patch's scope #2 #10.
- Amit Kapila reproduced a Windows test failure, and Andrey traced it to node2 failing to archive WAL received before promotion; Robert adopted archive_mode=always, after which Amit reported success #3 #5 #6 #7 #11.
- Srinath Reddy Sadipiralla corrected the explanation of .partial-file archiving, while Zhijie Hou approved the implementation and proposed delaying summarizer startup to avoid a ten-second retry; Robert incorporated those test and comment improvements in the third version #8 #13 #23.
- Thom Brown warned that switching WAL before the promotion checkpoint could make the test timing-dependent, but Robert initially defended the ordering; Robert also left the existing missing-segment error wording outside this fix's scope #14 #17 #18 #20 #21.
- Andrey supplied the original patch plus a separate demonstration of recovery consuming divergent WAL when nodes share an archive; that demonstration was excluded from Robert's final summarizer patch #22 #23.
- Robert committed the third version unchanged as 3e8a0c1b02 and reported completing backpatches, with test adjustments needed for PostgreSQL 17 and 18 #23 #24.
- Alexander Lakhin subsequently reproduced a buildfarm timeout caused by the promotion checkpoint's redo record falling into an unarchived segment, confirming the checkpoint-ordering risk raised earlier #25 #17.
- Andrey proposed running CHECKPOINT before pg_switch_wal() and reported successful CI testing; Robert attached that fix with an explanation of the asynchronous promotion-checkpoint race #26 #27.
- Alexander then reported another timing-dependent test failure in which background WAL advanced the recorded reference LSN beyond node2's eventual fork point; Andrey proposed recording the LSN before waiting for replay catchup #28 #29.
- The thread ends with Alexander reporting success using the flush LSN and Andrey arguing that either LSN function is suitable if capture precedes the replay wait; the original fix is committed, but the thread does not confirm landing the checkpoint-order patch or resolving the final LSN-race proposal #30 #31 #27.