X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 54ABBD1B526 for ; Mon, 8 Sep 2003 21:41:21 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 36954-01 for ; Mon, 8 Sep 2003 18:41:12 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 3BC48D1B51C for ; Mon, 8 Sep 2003 18:41:10 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h88Lf9An003981; Mon, 8 Sep 2003 17:41:09 -0400 (EDT) To: "Gaetano Mendola" Cc: pgsql-admin@postgresql.org Subject: Re: Duplicate key In-reply-to: <00f101c3764f$631f5e80$4c720b3e@mm.eutelsat.org> References: <23917.1063045271@sss.pgh.pa.us> <00f101c3764f$631f5e80$4c720b3e@mm.eutelsat.org> Comments: In-reply-to "Gaetano Mendola" message dated "Mon, 08 Sep 2003 23:22:53 +0200" Date: Mon, 08 Sep 2003 17:41:09 -0400 Message-ID: <3980.1063057269@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/147 X-Sequence-Number: 10235 "Gaetano Mendola" 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