Re: BUG #17374: Bug in restore

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: riina(dot)piiroinen(at)op(dot)fi
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17374: Bug in restore
Date: 2022-01-20 14:11:12
Message-ID: 856627.1642687872@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2022-01-20 14:35:57 BUG #17375: RECOVERY TARGET TIME RESTORE IS FAILING TO START SERVER
Previous Message PG Bug reporting form 2022-01-20 09:25:32 BUG #17374: Bug in restore