Search Postgresql Archives

Re: pg_restore duplicate key violations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Karl O. Pinc" <kop@xxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux