Lost rows / corrupt data?

From: "Andrew Hall" <temp02(at)bluereef(dot)com(dot)au>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Lost rows / corrupt data?
Date: 2005-02-03 05:56:25
Message-ID: 00b801c509b5$184c6ec0$5001010a@bluereef.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

We have a long running DB application using PG7.4.6. We do a VACUUM FULL
every night and a normal 'maintenance' VACUUM every hour. We do nothing with
any indexes. Every now and then we get errors from the database whereby an
update will fail on a table saying that there is duplicate violation on a
primary keyed row. Theoretically this is impossible as the constraint should
prevent any duplication, ever. When the next vacuum is run, we see an error
saying that there are more rows than the database can account for (or words
to that effect) and we should either REINDEX or TRUNCATE the table.

Firstly, how and why could this be happening, and above all how, do we
prevent it.

Thanks and regards,

Andrew.

Browse pgsql-general by date

  From Date Subject
Next Message sid tow 2005-02-03 06:25:37 Problem with the sequence
Previous Message Tom Lane 2005-02-03 04:56:58 Re: multidimensional arrays