Re: Primary key duplicates

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Primary key duplicates
Дата
Msg-id 362.1092450131@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Primary key duplicates  (Zeki Mokhtarzada <zeki@freewebz.com>)
Ответы Re: Primary key duplicates  (Zeki Mokhtarzada <zeki@freewebz.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Sequence problem in stresstest on 8.0-beta1 (windows)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Primary key duplicates