Skip site navigation (1) Skip section navigation (2)

Re: BUG #2379: Duplicate pkeys in table

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2379: Duplicate pkeys in table
Date: 2006-04-06 12:12:31
Message-ID: 20060406121231.GA6814@surnet.cl (view raw or flat)
Thread:
Lists: pgsql-bugs
Philip Warner wrote:

> We have an intermittent bug that occurs on a table which is updated several
> times per second. The bug occurs every few days/weeks. It is usually
> preceeded by a "tuple concurrently updated" messages, but I could not swear
> it is always preceeded by it.
> 
> The result of the bug is demonstrated by:
> 
> select id,count(*) from xxx group by id having count(*)>1;
>   id   | count
> -------+-------
>  24613 |     6
> (1 row)

Please do a

SELECT xmin, xmax, cmin, cmax FROM xxx where id = 24613;

if you still have that particular manifestation.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

pgsql-bugs by date

Next:From: Michael FuhrDate: 2006-04-06 12:20:21
Subject: Re: BUG #2379: Duplicate pkeys in table
Previous:From: Jim NasbyDate: 2006-04-06 11:46:00
Subject: Re: BUG #2372: dblink_exec doesn't return. NEVER!

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group