Duplicate key value violates unique constraint - Mailing list pgsql-bugs

From Nafees Sardar
Subject Duplicate key value violates unique constraint
Date
Msg-id 000c01d5fbab$63da7be0$2b8f73a0$@epazz.net
Whole thread Raw
Responses Re: Duplicate key value violates unique constraint  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Duplicate key value violates unique constraint  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs

Hi support,

 

I migrate my data from MS Sql server to postgreSQL database, now when I try to insert new row it gives me error “duplicate key value violates unique constraint”. For example I have a table which contains 100 rows of records when I go for inserting 101 row it give duplicate value constraint error. When I pass PK value manually its working, and one more thing auto increment is enabled for all tables .

 

Can you please let me know anything I am missing?  I will really appreciate it.

 

Thanks

Regards

Nafees Sardar

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #16303: A condtion whether an index-only scan is possible includes a wrong
Next
From: "David G. Johnston"
Date:
Subject: Re: Duplicate key value violates unique constraint