X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4EF8947580B for ; Sun, 6 Apr 2003 08:16:14 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id E08DC474E42 for ; Sun, 6 Apr 2003 08:16:13 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id BE8F643A89E; Sun, 6 Apr 2003 08:16:13 -0400 (EDT) From: "Gaetano Mendola" X-Newsgroups: comp.databases.postgresql.admin Subject: Duplicate primary key and also the OID !!!! Date: Sun, 6 Apr 2003 14:17:59 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 34 Message-ID: Reply-To: "Gaetano Mendola" X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: pgsql-admin@postgresql.org X-Spam-Status: No, hits=-0.8 required=5.0 tests=BAYES_20,PLING_PLING,PRIORITY_NO_NAME version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/64 X-Sequence-Number: 8219 Hi all, I'm running postgres 7.3.2 and in a table with a primary key I got that primary key duplicated :-( I found this because each time that I try tu update the field with id_user_traffic = 11348 I obtain an error about key duplicated. SELECT oid, id_user_traffic, start_date, end_date FROM user_traffic WHERE id_user = 6738; oid | id_user_traffic | start_date | end_date ---------+-----------------+------------+------------ 1213776 | 11348 | 2003-03-07 | 2003-04-07 1213776 | 11348 | 2003-03-07 | 2003-04-07 1213776 | 11348 | 2003-03-07 | 2003-04-07 1213776 | 11348 | 2003-03-07 | 2003-04-07 1107090 | 9675 | 2003-01-17 | 2003-02-17 1213779 | 11349 | 2003-04-07 | 2003-05-07 1213782 | 11350 | 2003-05-07 | 2003-06-07 How is it possible have the oid and the id_user_traffic ( serial primary key ) duplicated ? Any idea ?