Re: BUG #4913: Row missing from primary key index

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #4913: Row missing from primary key index
Дата
Msg-id 20090709232153.GP6414@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: BUG #4913: Row missing from primary key index  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-bugs
Andrew Gierth wrote:
> >>>>> "Mathieu" == "Mathieu De Zutter" <mathieu@dezutter.org> writes:
>
>  Mathieu> I have a table log_event with a primary key on an integer
>  Mathieu> 'id', called log_event_pkey.
>
>  Mathieu> The tables contains a duplicate for id = 15723018. The
>  Mathieu> duplicate (note that besides the id, all data differs)
>  Mathieu> doesn't seem to be known by the index at all.
> [snip]
>
> This was first reported on IRC and I spent a little time working with
> the OP trying to dig up info to suggest a cause; here is the relevent
> data (all provided by the OP at my request). I have not been able to
> suggest a possible cause based on this.

How are the event_timestamps generated?  If these come from the
transaction timestamp, it is even more weird that tuples seemingly
inserted by the same xmin have differing timestamps.

FWIW I think I've seen similar cases before.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4913: Row missing from primary key index
Следующее
От: Andrew Gierth
Дата:
Сообщение: Re: BUG #4913: Row missing from primary key index