-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure that Postgres always get a consistent snapshot #929
Open
judahrand
wants to merge
9
commits into
transferwise:master
Choose a base branch
from
thread:postgres-snapshot
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Apr 19, 2022
-
Make
create_replication_slot
return consistent LSNThis change ensures that the LSN at which the replication slot is first consistent is availiable to the caller of the method.
Configuration menu - View commit details
-
Copy full SHA for 4a8ab42 - Browse repository at this point
Copy the full SHA 4a8ab42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ee5493 - Browse repository at this point
Copy the full SHA 8ee5493View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e91b92 - Browse repository at this point
Copy the full SHA 0e91b92View commit details -
Ensure that replica is ahead of replication slot
There is a replication lag between a primary and replica database. We get information about what data the replication slot can provide from the primary but perform the initial data snapshot on the replica. Therefore, we must make sure that the replica has caught up to at least the LSN which we are going to begin streaming from the replication slot.
Configuration menu - View commit details
-
Copy full SHA for b0fb60f - Browse repository at this point
Copy the full SHA b0fb60fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d78347b - Browse repository at this point
Copy the full SHA d78347bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d1f7ece - Browse repository at this point
Copy the full SHA d1f7eceView commit details -
Configuration menu - View commit details
-
Copy full SHA for f40d130 - Browse repository at this point
Copy the full SHA f40d130View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d6fb63 - Browse repository at this point
Copy the full SHA 0d6fb63View commit details -
Configuration menu - View commit details
-
Copy full SHA for f795486 - Browse repository at this point
Copy the full SHA f795486View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.