X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 37276475AE4 for ; Sun, 6 Apr 2003 12:59:10 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 8C252475AA9 for ; Sun, 6 Apr 2003 12:59:09 -0400 (EDT) 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 h36Gx82L019121; Sun, 6 Apr 2003 12:59:08 -0400 (EDT) To: "Gaetano Mendola" Cc: pgsql-admin@postgresql.org Subject: Re: Duplicate primary key and also the OID !!!! In-reply-to: References: Comments: In-reply-to "Gaetano Mendola" message dated "Sun, 06 Apr 2003 14:17:59 +0200" Date: Sun, 06 Apr 2003 12:59:08 -0400 Message-ID: <19120.1049648348@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-26.8 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,PLING_PLING, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/65 X-Sequence-Number: 8220 "Gaetano Mendola" writes: > How is it possible have the oid and the id_user_traffic ( > serial primary key ) duplicated ? Any idea ? Have you had any power failures lately? Tried to copy a running database via "tar" or "cp"? Anything interesting like that? There are ways for multiple versions of a row to all appear good, if something happens that breaks the synchronization between datafiles and pg_clog. AFAIK these all reduce to DBA error (copying a live database) or hardware misfeasance (disk drive claiming write complete before it really is, and then losing the data in a power failure). Also, what Postgres version are you using? Awhile back there was a bug that allowed a sequence to appear to go backward in a crash. regards, tom lane