-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source-postgres: Drop/recreate slot on backfills
This commit adds logic to automatically drop and then recreate the replication slot when there is no prior replication cursor to resume from. This has two effects: - It avoids situations where the replication slot could be created by an initial validation operation but then the capture itself doesn't start for hours and has to read through the entire WAL between those points before actually reaching events it cares about. - It allows users to recover from replication slot invalidation by simply hitting the "Backfill Everything" button, whereas before they had to go and drop the slot themselves as well. This fixes #2001
- Loading branch information
1 parent
a6654f0
commit c611944
Showing
3 changed files
with
50 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters