Duplicated primary key id happen

From: mailtolouis2020-postgres(at)yahoo(dot)com
To: Postgres <pgsql-general(at)postgresql(dot)org>
Subject: Duplicated primary key id happen
Date: 2008-05-09 14:35:53
Message-ID: 739837.55207.qm@web30408.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,
I got a problem to restore a database, because there is a problem in my production database, which not suppose to happen like that, but it happen, not sure is a postgres bug or not.
I got a table call CS_SR_MTHLY_RTN which has MTHLY_RTN_ID (INTEGER) as a primary key. So the MTHLY_RTN_ID value should be unique, but somehow there are 2 record which id is 15 in this table.
The first record look fine to me, because the data in other columns look ok. But the second one, definitely I'm sure is wrong. There are value in column sr_batch_id and er_batch_id, and the value are very very big, 808464726 & 842018867 and the rest of the column value are null.
How can this happen?
Currently using Postgres 8.2.5
Regards
Louis

Browse pgsql-general by date

  From Date Subject
Next Message mailtolouis2020-postgres 2008-05-09 14:36:13 Duplicated primary key id happen
Previous Message Tom Lane 2008-05-09 14:18:37 Re: reproducible database crash with simple sql command on postgres 8.3.1