Re: pg_restore duplicate key violations - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_restore duplicate key violations
Date
Msg-id 2784.1147131738@sss.pgh.pa.us
Whole thread Raw
In response to pg_restore duplicate key violations  ("Karl O. Pinc" <kop@meme.com>)
Responses Re: pg_restore duplicate key violations
Re: pg_restore duplicate key violations
List pgsql-general
"Karl O. Pinc" <kop@meme.com> writes:
> I'm having trouble with a dump and restore:

> $ pg_dump --format=t --schema=babase --data-only --user babase_admin
> babase_test | pg_restore --data-only --disable-triggers --user
> babase_admin --dbname=babase
> pg_restore: ERROR:  duplicate key violates unique constraint
> "activities_pkey"
> CONTEXT:  COPY activities, line 1: "B   t       t       Be groomed"

Um ... it looks to me like you're trying to restore into an existing
table that already has the same data loaded ...

            regards, tom lane

pgsql-general by date:

Previous
From: "Michael Schmidt"
Date:
Subject: Re: What is your favorite front end for user interaction to postgresql databases?
Next
From: "Joshua D. Drake"
Date:
Subject: Re: What is your favorite front end for user interaction