Re: Primary key duplicates

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zeki Mokhtarzada <zeki(at)freewebz(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Primary key duplicates
Date: 2004-08-14 02:22:11
Message-ID: 362.1092450131@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Zeki Mokhtarzada <zeki(at)freewebz(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Zeki Mokhtarzada 2004-08-14 02:34:19 Re: Primary key duplicates
Previous Message Zeki Mokhtarzada 2004-08-14 00:31:24 Re: Primary key duplicates