X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E7E579DCB92 for ; Fri, 6 Jan 2006 07:40:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92513-04-3 for ; Fri, 6 Jan 2006 07:40:58 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 4828D9DCB8A for ; Fri, 6 Jan 2006 07:40:51 -0400 (AST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Eupxl-0006fV-Cb; Sat, 07 Jan 2006 00:40:53 +1300 Message-ID: <43BE574B.9060505@opencloud.com> Date: Fri, 06 Jan 2006 11:40:59 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Victor_P=E9rez_Ju=E1rez?= CC: pgsql-jdbc@postgresql.org Subject: Re: appears twice in primary key constraint References: <43BDD965.1020008@e-evolution.com> In-Reply-To: <43BDD965.1020008@e-evolution.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.106 required=5 tests=[AWL=0.106] X-Spam-Score: 0.106 X-Spam-Level: X-Archive-Number: 200601/24 X-Sequence-Number: 14475 Victor Pérez Juárez wrote: > Hi very body! > > I am execute a dbcopy to migrate from ORacle to PostgreSQL but I get > this error when is create prymary key > > org.postgresql.util.PSQLException: ERROR: column "ad_client_id" appears > twice in primary key constraint You should probably ask the authors of dbcopy as this appears to be a client/application problem, not a JDBC driver problem -- dbcopy is apparently creating a bogus CREATE TABLE / ADD CONSTRAINT query. -O