Skip to content

clean before restore#21

Open
FuhuXia wants to merge 1 commit into
mainfrom
fix-psql-schema-public-error
Open

clean before restore#21
FuhuXia wants to merge 1 commit into
mainfrom
fix-psql-schema-public-error

Conversation

@FuhuXia

@FuhuXia FuhuXia commented Aug 19, 2022

Copy link
Copy Markdown
Member

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