Skip to content
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

clean before restore #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

clean before restore #21

wants to merge 1 commit into from

Conversation

FuhuXia
Copy link
Member

@FuhuXia FuhuXia commented Aug 19, 2022

Add --if-exists --clean to the pg_restore option to get rid the following error. The error is more like a harmless warning but it does halt the script from completing.

pg_restore: while PROCESSING TOC:
pg_restore: from TOC entry 4; 2615 2200 SCHEMA public postgres
pg_restore: error: could not execute query: ERROR:  schema "public" already exists
Command was: CREATE SCHEMA public;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant