X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8C6B432A002 for ; Wed, 20 Oct 2004 19:57:32 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 83551-10 for ; Wed, 20 Oct 2004 18:57:25 +0000 (GMT) Received: from sj-iport-1.cisco.com (sj-iport-1-in.cisco.com [171.71.176.70]) by svr1.postgresql.org (Postfix) with ESMTP id 2D20B32A37C for ; Wed, 20 Oct 2004 19:57:24 +0100 (BST) Received: from sj-core-1.cisco.com (171.71.177.237) by sj-iport-1.cisco.com with ESMTP; 20 Oct 2004 12:07:36 -0700 X-BrightmailFiltered: true Received: from cjwhitew2k02 (dhcp-128-107-147-121.cisco.com [128.107.147.121]) by sj-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id i9KIvGk2024151 for ; Wed, 20 Oct 2004 11:57:17 -0700 (PDT) Message-Id: <200410201857.i9KIvGk2024151@sj-core-1.cisco.com> Reply-To: From: "Chris White (cjwhite)" To: Subject: Need help Date: Wed, 20 Oct 2004 11:57:19 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00B4_01C4B69B.F3BAFAC0" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Thread-Index: AcS21p+7XYeeJYFYSDapNa6mOhdp8g== X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=HTML_50_60, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200410/260 X-Sequence-Number: 15253 This is a multi-part message in MIME format. ------=_NextPart_000_00B4_01C4B69B.F3BAFAC0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I am running 7.4.2 and I am seeing a strange error. I am using jdbc to update a table with the following statement: update vm_message set usecount=4 where messsage id='1234567'; this statements generates a PSQLException with the following message: ERROR: duplicate key violates unique constraint "vm_message_pkey" I don't understand why I am getting this message because the primary key for table vm_message is messageid and this is not being changed Any body have any ideas? Chris White ------=_NextPart_000_00B4_01C4B69B.F3BAFAC0 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable
I am runn= ing 7.4.2=20 and I am seeing a strange error. I am using jdbc to update a table with the= =20 following statement:
 
update vm= _message=20 set usecount=3D4 where messsage id=3D'1234567';
 
this stat= ements=20 generates a PSQLException with the following message:
 
ERROR: du= plicate key=20 violates unique constraint "vm_message_pkey"
 
I don't u= nderstand=20 why I am getting this message because the primary key for table vm_message = is=20 messageid and this is not being changed
 
Any body = have any=20 ideas?
 
Chris=20 White
------=_NextPart_000_00B4_01C4B69B.F3BAFAC0--