model-writtenrun 3590 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vignesh C reported a shutdown-checkpoint assertion failure after an apply worker restarted and acknowledged an older persisted origin LSN; he supplied two alternative fixes and initially preferred preventing confirmed_flush from moving backward #1.
- Amit Kapila asked whether the retreat could also occur through the code path that persists slot state, and Vignesh reported that his reproducer used the other branch and that additional experiments found no retreat through the persisting path #2 #3.
- When discussion resumed in June, Amit preferred removing the assertion and dirtying the slot only when confirmed_flush advances beyond its saved value, reasoning that temporary retreat in memory was harmless #5.
- Shlok Kyal reproduced the original failure and verified the selected alternative across twenty successful runs; Vignesh subsequently reported 150 successful runs, clean patch application and formatting, and passing regression and TAP tests #6 #7.
- Amit committed the slot.c alternative from the original submission unchanged apart from its base, leaving out the alternative logical.c guards, and announced the push #1 d1ffcc7fa3 #8.
- After the commit, Tomas Vondra questioned whether allowing an acknowledged flush LSN to retreat concealed a deeper bug, while Tom Lane argued that meaningful protection would require a production check and a defined recovery procedure rather than an assertion #9 #10.
- Amit explained that synchronous replication requires acknowledgments even for changes the subscriber does not apply or persist, so restart can legitimately restore an older origin LSN; the fix remained committed, while persisting those otherwise unused positions remained an unresolved possibility because of potential workload overhead #11.