model-writtenrun 7704 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Amit Kapila opened the thread with #1, fixing replication-origin progress for ROLLBACK PREPARED during normal execution and recovery so subscribers would not request an already-applied rollback after restarting, including when their wal_level was below logical.
- Michael Paquier requested tests and an explanatory comment in #2, then questioned whether the proposed subscriber tests covered replication origins in #4; Amit explained how those tests expose lost rollback progress after restart in #3 and #5.
- Ajin Cherian instrumented and tested the patch with the broader two-phase replication work in #6, confirming that rollback was not resent after restart; following Amit's request in #7, Ajin verified the recovery path after an immediate shutdown in #8 and corrected the quoted instrumentation in #9.
- Amit posted #10 with the requested recovery comment, a rebase, and pgindent formatting, preserving the original implementation and proposing to commit now that plugins could enable two-phase decoding.
- Michael raised concerns about landing code before its dependent subscriber tests in #11; Amit explored direct replication-origin API tests in #12, #13, and #14, but identified checkpoint timing, broader coverage gaps, and questionable API usage as obstacles.
- Amit committed #10 unchanged as 8a812e5106, documenting that the newly exposed two-phase decoding support needed the fix and that no backpatch was planned because there had been no complaints.
- Amit announced the commit and manual validation in #15, leaving additional automated tests open to better proposals; Michael concluded in #16 that restart coverage required TAP tests of the kind being developed with the subscriber work.