model-writtenrun 1710 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- 蔡梦娟(玊于), signing as suyu.cmj, questioned why PostgreSQL 16 and later could invalidate a replication slot even after its restart_lsn had advanced beyond the conflict threshold; Bertrand Drouvot traced this to an earlier consistency fix, but the reporter challenged whether preserving the initial invalidation decision was justified #1 #2 #3.
- Bertrand proposed rechecking the current restart_lsn while retaining the initial xmin values, reasoning that the process checking invalidation had not yet removed the WAL, and the reporter agreed with this first patch #4 #5.
- Masahiko Sawada questioned whether termination could be reported without actual slot invalidation; Bertrand clarified that this was the previous behavior, and they discussed an explicit recovery message without adding one to the patch #6 #7 #8 #9.
- Masahiko argued that the same safety reasoning applied to xmin because recovery had not yet removed the conflicting tuples; Bertrand accepted that reasoning but briefly considered retaining the existing behavior, until Amit Kapila argued that slots should only be invalidated when their current state warranted it #10 #12 #13 #14.
- Bertrand expanded the patch to recheck both xmin values as well as restart_lsn, removed the saved-state machinery, and documented why catching up was safe; he noted that an independent test fix had already addressed the instability that motivated the original behavior #15.
- Masahiko reviewed the expanded patch and requested moving the inactive_since comment; Bertrand incorporated that cleanup into the final submission while deferring XLogRecPtrIsInvalid() conversion to a separate broader effort #16 #17 #18 #20.
- Michael Paquier supported restoring the earlier behavior and treating reporting improvements separately; Bertrand favored leaving reporting unchanged absent field complaints, and Masahiko agreed that further reporting changes belonged in another discussion #19 #20 #21.
- Michael supported backpatching through PostgreSQL 16 and reported hundreds of successful runs of the standby logical-decoding test on versions 16 and 17, while acknowledging that the original race was difficult to reproduce #22 #23.
- Michael committed #20 as d432094689 with only comment wording and commit-message edits, then confirmed application through PostgreSQL 16; the patch was fully landed at the thread's end, with buildfarm monitoring continuing and reporting improvements left separate #25.