-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[1-dimensional-data-modeling] pg_restore not idempotent? #133
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed running
pg_restore -U user -d postgres data.dump
repeatedly causes some tables to grow in size.I expected tables to be the same no matter how many restores are done.
This would be confusing users later if they don't know this can happen.
Users may restore multiple times when retrying failed attempts.
The 2 images show 1 restore apart. Top section is local, bottom section is docker.
I'm guessing duplicated data is being inserted after multiple restores.
Is docker non-idempotent behaviour explained at Initialization scripts section of https://hub.docker.com/_/postgres?
The text was updated successfully, but these errors were encountered: