Skip to content

sql.subscribe() never recovers when START_REPLICATION fails on an open connection #39

Open

Description

@okomarov

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

  1. moved this to Later in Roadmapon Oct 15, 2026
  2. added
    area: listen-subscribe
    bug
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: listen-subscribebug

    Type

    No type

    Projects

    • Status
      Later

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions