model-writtenrun 7451 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Amit Kapila reported a buildfarm failure caused by an unexpectedly active replication slot and identified a missing wait after subscription creation that allowed replication to start after the subscription was disabled #1.
- vignesh C supplied a patch adding the initial catchup wait and checking pg_replication_slots for inactivity, explaining that walsender cleanup could precede slot release and make pg_stat_replication an unreliable shutdown check #2.
- Michael Paquier suggested consolidating the repeated synchronization sequence, which vignesh C implemented as a helper; Michael reviewed that version, and Amit Kapila subsequently questioned its naming, comments and implicit assumption that the slot was active before disabling the subscription #3 #5 #6 #7 #8.
- vignesh C explained that wait_for_catchup already waits for streaming and proposed consuming changes with pg_logical_slot_get_binary_changes at selected points, removing the helper and repeated subscription enable/disable cycles #9.
- Amit Kapila accepted the simplified approach and requested explanatory comments and disabled publisher autovacuum to prevent empty transactions from interfering with the test; vignesh C incorporated both requests #10 #11.
- Amit Kapila committed #11 as 0a442a408b with only comment changes, announced the push, and received vignesh C's acknowledgment, leaving the fix fully landed with no outstanding work stated #12 #13.