pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nafees Sardar <nafees@epazz.net>
To: pgsql-bugs@lists.postgresql.org
Subject: Duplicate key value violates unique constraint
Date: Mon, 16 Mar 2020 20:55:57 +0500
Message-ID: <000c01d5fbab$63da7be0$2b8f73a0$@epazz.net> (raw)

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

view thread (6+ messages)  latest in thread

Message-ID: <000c01d5fbab$63da7be0$2b8f73a0$@epazz.net>
Permalink:  ../000c01d5fbab$63da7be0$2b8f73a0$@epazz.net/
Also on:    postgresql.org/message-id/000c01d5fbab$63da7be0$2b8f73a0$@epazz.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: nafees@epazz.net, pgsql-bugs@lists.postgresql.org
  Subject: Re: Duplicate key value violates unique constraint
  In-Reply-To: <000c01d5fbab$63da7be0$2b8f73a0$@epazz.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox