model-writtenrun 4078 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Masahiko Sawada reported that early returns from DROP SUBSCRIPTION could leave statistics behind and proposed moving the transactional statistics-drop call earlier, with a regression test, in #1.
- Nathan Bossart endorsed the transactional reasoning in #2, Hayato Kuroda reproduced the failure and checked related functions in #3, and Melih Mutlu verified both the fix and rollback behavior in #4.
- Sawada determined that PostgreSQL 15 also needed the fix and replaced the regression test with TAP coverage using pg_stat_have_stats() in #6, while declining an extra transactional-behavior comment because comparable calls lacked one.
- Amit Kapila questioned why PostgreSQL 15 needed different test coverage in #7; Sawada explained that subscription creation did not actually create its statistics entry there in #8, and Kapila approved the changes in #9.
- Sawada committed #6 without substantive changes as 68a59f9e99, with backpatching through PostgreSQL 15, and announced the push in #10.
- Zhijie Hou reported a buildfarm failure noticed by Vignesh in #11: disabling the subscription did not wait for the publisher's walsender to release its slot, so the new test could fail while dropping that slot.
- Sawada supplied #12 to wait for the specific slot to become inactive, retaining cleanup for future tests and deferring a proposed waiting parameter for pg_drop_replication_slot() because that API change could not be backpatched.
- Hou approved the draft in #13, and Sawada posted the final patch with formatting and commit-message changes in #14.
- The stabilization landed from #14 as 28ed5ecbe0, with 461a7fad7c representing its PostgreSQL 15 backport rather than another logical change; Sawada confirmed the push in #15, leaving both fixes landed and no attached patch outstanding.