duplicate key value violates unique constraint "tableName_pk" - Mailing list pgsql-bugs

From Saravanan Nagarajan
Subject duplicate key value violates unique constraint "tableName_pk"
Date
Msg-id CANYLzthssbdi4LSYmL9NJ6XsHJcm=Ni8qBMEJtzuij4jCO7Gtw@mail.gmail.com
Whole thread Raw
Responses Re: duplicate key value violates unique constraint "tableName_pk"  (Pavan Deolasee <pavan.deolasee@gmail.com>)
Re: duplicate key value violates unique constraint "tableName_pk"  (Craig Ringer <ringerc@ringerc.id.au>)
List pgsql-bugs
Hi ,

I am using "Copy From" while dumping bulk data into PGSQL DB from file.
While I am trying to insert the rows, if the primary key already exists,
the complete transaction terminated.

Postgres cannot handle the constraint violations , i found it into
http://wiki.postgresql.org/wiki/COPY#Caveats_with_implementation .

Is there any possible way to insert bulk data using "Copy From" with
REPLACE/IGNORE duplicates.

Thanks & Regards

Saravanan.

pgsql-bugs by date:

Previous
From: Denis Feklushkin
Date:
Subject: Bug reporting form :-(
Next
From: Denis Feklushkin
Date:
Subject: PQsendQueryParams() causes prepared statement error