Re: Table has duplicate keys, what did I do

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: John Gateley <gateley(at)jriver(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Table has duplicate keys, what did I do
Date: 2008-01-29 17:53:11
Message-ID: 23005.1201629191@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John Gateley <gateley(at)jriver(dot)com> writes:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> John Gateley <gateley(at)jriver(dot)com> writes:
>>> Somehow I have managed to have two tables with duplicate keys.

>> What PG version is this? We've fixed some bugs in the past that
>> could give rise to duplicated rows.

> Currently 8.1.4, and it's been tracking Ubuntu 6.06 LTS for
> updates, so it could have been earlier than 8.1.4 when the duplicate
> row actually was created.

There was a fix released in 8.1.9 for a problem that could cause VACUUM
FULL to create duplicate copies of a row that had recently been updated.
Does that sound like a plausible scenario for your usage?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Hart 2008-01-29 17:53:25 postgresql book - practical or something newer?
Previous Message Richard Broersma Jr 2008-01-29 17:52:38 Re: referencing to "computed columns" in where clause