Re: BUG #17374: Bug in restore - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17374: Bug in restore
Date
Msg-id 856627.1642687872@sss.pgh.pa.us
Whole thread Raw
In response to BUG #17374: Bug in restore  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> While restoring backup-file to another schema, I got following error:
> "pg_restore: could not execute query: ERROR  "<table_name>" already
> exists.
> Despite the error, the rows in the tables doubled.

That sounds like the expected result if you try to restore over
an existing table.  Use --clean to drop and recreate the target
tables.

            regards, tom lane



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17374: Bug in restore
Next
From: PG Bug reporting form
Date:
Subject: BUG #17375: RECOVERY TARGET TIME RESTORE IS FAILING TO START SERVER