You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sql.subscribe() never recovers when START_REPLICATION fails on an open connection #39
If START_REPLICATION fails while the replication connection stays open (for example after the publication was dropped), the temporary slot created by CREATE_REPLICATION_SLOT on that connection still exists. The retry added for #32/#33 then fails with "replication slot already exists" on every attempt and the subscription never recovers.
Found while fixing #32/#33 for 4.4.0; not covered by it. Fix: drop the slot (or close the connection, which drops a temporary slot) before retrying, or generate a new slot name per attempt.
Activity