Re: Primary key duplicates

Поиск
Список
Период
Сортировка
От Zeki Mokhtarzada
Тема Re: Primary key duplicates
Дата
Msg-id Pine.LNX.4.44.0408131924020.2484-100000@freewebz.com
обсуждение исходный текст
Ответ на Re: Primary key duplicates  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Fri, 13 Aug 2004, Tom Lane wrote:

> It would be interesting to see the ctid, xmin, cmin, and xmax fields
> as well.

     ctid     |    xmin    |    cmin    |    xmax    |   oid    | fileid  | userid
--------------+------------+------------+------------+----------+---------+---------
   (53101,30) |          2 | 1478674026 | 1478674026 |  1573737 | 3787433 | 1898598
   (53101,39) |          2 |          0 |          0 |  1573737 | 3787433 | 1898598

> Possibly, but the duplicate OID entries suggest that a row was updated
> and then for some reason the old version appears to still be valid.
> (Or an attempted update was rolled back, but the new version got marked

I've run the query with set enable_indexscan =off so that rules out an
index problem.


> valid anyway.)  Have you had any crashes or other strange behavior lately?

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.

It looks like you've seen this problem before:

http://archives.postgresql.org/pgsql-bugs/2003-12/msg00174.php

But you never stated how to delete the duplicate rows.  Any suggestions?
Also, where can I find documentation on the purpose and values of the
ctid, oid, xmin, xmax, cmin, cmax columns?

Thanks!

-Zeki

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [8.0beta] failure on NetBSD/alpha
Следующее
От: Zeki Mokhtarzada
Дата:
Сообщение: Re: Primary key duplicates