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

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Mathieu De Zutter <mathieu(at)dezutter(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4913: Row missing from primary key index
Date: 2009-07-10 00:02:09
Message-ID: 20090710000209.GR6414@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Mathieu De Zutter wrote:

> I have a table log_event with a primary key on an integer 'id', called
> log_event_pkey.
>
> The tables contains a duplicate for id = 15723018. The duplicate (note that
> besides the id, all data differs) doesn't seem to be known by the index at
> all.

What do the INSERT lines look like? Is it a trigger, an insert called
directly by the application? How is the sequence involved -- lastval(),
nextval(), does the code just leave the column out for the default to fire?

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andrew Gierth 2009-07-10 00:09:38 Re: BUG #4913: Row missing from primary key index
Previous Message Tom Lane 2009-07-09 23:56:41 Re: BUG #4913: Row missing from primary key index