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

From David G. Johnston
Subject Re: Duplicate key value violates unique constraint
Date
Msg-id CAKFQuwbyaTJ0EKOs1vNfo4+4=FVBN40vZ5a_DyF_mYogv2Pyhg@mail.gmail.com
Whole thread Raw
In response to Duplicate key value violates unique constraint  ("Nafees Sardar" <nafees@epazz.net>)
List pgsql-bugs
On Monday, March 16, 2020, Nafees Sardar <nafees@epazz.net> wrote:

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.


ALTER SEQUENCE

David J. 

pgsql-bugs by date:

Previous
From: "Nafees Sardar"
Date:
Subject: Duplicate key value violates unique constraint
Next
From: Tom Lane
Date:
Subject: Re: Duplicate key value violates unique constraint