pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Duplicate key
Date: Mon, 08 Sep 2003 17:41:09 -0400
Message-ID: <3980.1063057269@sss.pgh.pa.us> (raw)
In-Reply-To: <00f101c3764f$631f5e80$4c720b3e@mm.eutelsat.org>
References: <bjiebm$s6c$1@floppy.pyrenet.fr>
	<23917.1063045271@sss.pgh.pa.us>
	<00f101c3764f$631f5e80$4c720b3e@mm.eutelsat.org>

"Gaetano Mendola" <mendola@bigfoot.com> writes:
> I had one row duplicated with the same login and the same id_user,
> was failing was the update of that row complaining about the duplicated
> key.

Oh.  Your report was quite unclear; I thought you were saying that
REINDEX had somehow built two copies of the same index.

Is the row actually duplicated, or has it just managed to acquire two
pointers to itself in the indexes?  You could check by seeing whether
the two apparent instances have the same or different ctid values
(ctid is a system column not shown unless you ask for it, like oid).
If they are different ctids, it would be useful to see whether they have
the same or different oid,xmin,cmin,xmax,cmax (more system columns).

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <3980.1063057269@sss.pgh.pa.us>
Permalink:  ../3980.1063057269@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3980.1063057269@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mendola@bigfoot.com
  Subject: Re: Duplicate key
  In-Reply-To: <3980.1063057269@sss.pgh.pa.us>
  References: <bjiebm$s6c$1@floppy.pyrenet.fr> <23917.1063045271@sss.pgh.pa.us> <00f101c3764f$631f5e80$4c720b3e@mm.eutelsat.org> <3980.1063057269@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox