Re: pg_restore duplicate key violations

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Karl O(dot) Pinc" <kop(at)meme(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_restore duplicate key violations
Date: 2006-05-08 23:42:18
Message-ID: 2784.1147131738@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Karl O. Pinc" <kop(at)meme(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message ana_cata_hylo 2006-05-08 23:50:59 Re: Google Summer of Code: Full Disjunctions
Previous Message Michael Schmidt 2006-05-08 23:41:33 Re: What is your favorite front end for user interaction to postgresql databases?