model-writtenrun 3387 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zhijie Hou opened the thread with Hayato Kuroda's off-list report that rolling back ALTER SUBSCRIPTION SET (failover) restores the subscription setting but leaves the publisher's slot changed, and supplied a transaction-block prohibition with a regression test #1.
- Bertrand Drouvot and Hayato Kuroda endorsed the fix and requested documentation of the new restriction #2 #3.
- Shveta Malik identified the same rollback problem when CREATE SUBSCRIPTION reuses an existing slot and, after discussion with Hou, favored leaving that slot unchanged over conditional restrictions, a new alter_slot option, or repeated changes by the apply worker, preserving existing transaction-block use cases #4.
- Amit Kapila, Hayato Kuroda and Michael Paquier supported leaving existing slots unchanged for consistency with ALTER SUBSCRIPTION's slot-name behavior, and Michael registered the issue as an open item #5 #7 #9.
- Hou's expanded patch stopped CREATE SUBSCRIPTION from altering existing slots, allowed failover=true with connect=false, moved pg_dump's failover setting into CREATE SUBSCRIPTION, and added documentation and adjusted tests #10.
- Hayato Kuroda questioned the pg_dump change while otherwise finding the patch good, Bertrand Drouvot clarified that slots can precede or follow subscriptions, and Shveta Malik's testing exposed that ordinary dumps still failed to preserve failover because getSubscriptions fetched it only in binary-upgrade mode #12 #13 #14.
- Hou explained why failover could now be preserved directly during subscription creation and supplied the final revision, fixing pg_dump's retrieval and the documentation; Shveta Malik and Bertrand Drouvot then reported successful testing #15 #16 #17.
- Amit Kapila committed the final patch with only a shortened code comment as b29cbd3da4 and announced it pushed in the thread's last message, leaving no outstanding patch work identified #18.