Re: Primary key duplicates - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Primary key duplicates
Date
Msg-id 362.1092450131@sss.pgh.pa.us
Whole thread Raw
In response to Primary key duplicates  (Zeki Mokhtarzada <zeki@freewebz.com>)
Responses Re: Primary key duplicates
List pgsql-bugs
Zeki Mokhtarzada <zeki@freewebz.com> writes:
> The system is running on a Dell PowerEdge 2650 running RedHat 8.  We had a
> kernel halt about two weeks ago that was caused by one of our disk mirrors
> failing.  It could be that these problems were caused at that point in
> time and are just being noticed now.

Not sure.  xmin=2 (FrozenXid) implies that those rows have been like
that for a good long time (~ 1 billion transactions).

> But you never stated how to delete the duplicate rows.  Any suggestions?

You can select 'em by ctid, viz WHERE ctid = '(53101,30)'

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Sequence problem in stresstest on 8.0-beta1 (windows)
Next
From: Tom Lane
Date:
Subject: Re: Primary key duplicates