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 854A4D1B500 for ; Mon, 8 Sep 2003 22:21:24 +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 43513-03 for ; Mon, 8 Sep 2003 19:20:54 -0300 (ADT) Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by svr1.postgresql.org (Postfix) with ESMTP id 4EA35D1B502 for ; Mon, 8 Sep 2003 19:20:50 -0300 (ADT) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id h88LMXE20174; Mon, 8 Sep 2003 23:22:33 +0200 Received: from gmendola (accesspoint.mm.eutelsat.org [194.214.173.4]) by nts-03.mm.eutelsat.org (8.11.6/linuxconf) with SMTP id h88MEmR30230; Tue, 9 Sep 2003 00:14:51 +0200 Message-ID: <015a01c37657$0f8f55b0$4c720b3e@mm.eutelsat.org> From: "Gaetano Mendola" To: Cc: "Tom Lane" References: <23917.1063045271@sss.pgh.pa.us> <00f101c3764f$631f5e80$4c720b3e@mm.eutelsat.org> <3980.1063057269@sss.pgh.pa.us> Subject: Re: Duplicate key Date: Tue, 9 Sep 2003 00:17:40 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/150 X-Sequence-Number: 10238 "Tom Lane" wrote: > "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. I don't know if this time was a reindex or not, but for the other table I'm sure, I had several times the duplicate key and removing the reindex the problem disapperead. > 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). I already fixed the problem so I can not perform the select, before remove the two rows I selected the oid and it was duplicated too. Next time I will select the suggested columns. Regards Gaetano Mendola