From tianzhonglei@boco.com.cn Wed Nov 7 06:26:09 2007 Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 8E4419F925A for ; Wed, 7 Nov 2007 02:26:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 65118-06 for ; Wed, 7 Nov 2007 02:26:01 -0400 (AST) Received: from eyou.net (unknown [211.94.130.214]) by postgresql.org (Postfix) with SMTP id B9F969F93A1 for ; Wed, 7 Nov 2007 02:25:58 -0400 (AST) X-EYOU-SPAMVALUE: 0 X-EYOU-DEALDRC: Received: (eyou anti_spam gateway 3.0); Wed, 07 Nov 2007 14:18:13 +0800 Message-ID: <394416293.05819@eyou.net> X-EYOUMAIL-SMTPAUTH: tianzhonglei@boco.com.cn Received: from 211.94.130.199 by 211.94.130.214 with SMTP; Wed, 07 Nov 2007 14:18:11 +0800 From: =?gb2312?B?zO/W0sDa?= To: Subject: can i get your help? Date: Wed, 7 Nov 2007 14:25:19 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0000_01C8214A.09E97350" X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcghBvcSWPCmFnepRKGfbhGZ9vBmkQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=4.642 tagged_above=0 required=5 tests=BAYES_50=0.001, DNS_FROM_RFC_BOGUSMX=1.482, DNS_FROM_RFC_DSN=1.495, HTML_MESSAGE=0.001, MSGID_FROM_MTA_HEADER=0.803, RCVD_DOUBLE_IP_LOOSE=0.76, RDNS_NONE=0.1 X-Spam-Level: **** X-Archive-Number: 200711/16 X-Sequence-Number: 17771 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C8214A.09E97350 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Hi, I am a develop of java .and I use postgres ,too.but I want to use the command of =A1=B0copy=A1=B1, but the using the jdbc driver, Can I use the the command ?and how can I can? I have try for serevel ways,but fails, can you help me.tthanks. Best wishes, Tian zhonglei =20 ------=_NextPart_000_0000_01C8214A.09E97350 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

Hi,

I am a develop = of java .and I use postgres ,too.but I want to use the command of =  =A1=B0copy=A1=B1, but the using the jdbc driver,

Can I use the = the command ?and how can I can? I have try for serevel ways,but fails, can you help me.tthanks.

Best = wishes,

     = ;            =             &= nbsp;           &n= bsp;           &nb= sp;           Tian zhonglei

     = ;            =

------=_NextPart_000_0000_01C8214A.09E97350-- From laurenz.albe@wien.gv.at Wed Nov 7 08:53:09 2007 Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 91CCD9F981C for ; Wed, 7 Nov 2007 04:53:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 63044-07 for ; Wed, 7 Nov 2007 04:53:05 -0400 (AST) Received: from fr112.ext.magwien.gv.at (relay-fr112.magwien.gv.at [217.149.225.66]) by postgresql.org (Postfix) with ESMTP id A1FC09F974B for ; Wed, 7 Nov 2007 04:53:05 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by fr112.ext.magwien.gv.at (Postfix) with ESMTP id 9571C6EFDE; Wed, 7 Nov 2007 09:53:04 +0100 (CET) Received: from exrat0.host.magwien.gv.at (exrat0.host.magwien.gv.at [10.136.132.84]) by fr112.ext.magwien.gv.at (Postfix) with ESMTP id 7942A6EFA9; Wed, 7 Nov 2007 09:53:01 +0100 (CET) Received: from exadv11.host.magwien.gv.at ([10.153.17.1]) by exrat0.host.magwien.gv.at with Microsoft SMTPSVC(6.0.3790.211); Wed, 7 Nov 2007 09:52:59 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable Subject: Re: can i get your help? Date: Wed, 7 Nov 2007 09:52:57 +0100 Message-ID: In-Reply-To: <394416293.05819@eyou.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [JDBC] can i get your help? Thread-Index: AcghBvcSWPCmFnepRKGfbhGZ9vBmkQAE+Lrg References: <394416293.05819@eyou.net> From: "Albe Laurenz" To: =?GB2312?B?zO/W0sDaICAqRVhURVJOKg==?= , X-OriginalArrivalTime: 07 Nov 2007 08:52:59.0209 (UTC) FILETIME=[98D68B90:01C8211B] X-Virus-Scanned: by amavisd-new using Sophie and ClamAV at magwien.gv.at X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/18 X-Sequence-Number: 17773 =CC=EF=D6=D2=C0=DA wrote: > I am a develop of java .and I use postgres ,too.but I want to=20 > use the command of =A1=B0copy=A1=B1, but the using the jdbc driver, >=20 > Can I use the the command ?and how can I can? I have try for=20 > serevel ways,but fails, can you help me.tthanks. There is no COPY support in the PostgreSQL JDBC driver. There has been a patch to enable COPY support, but it was never added to the source. You may try your luck with this if you are willing to put up with the trouble. http://archives.postgresql.org/pgsql-jdbc/2003-12/msg00186.php The patch is for version 7.4, so it will probably need work. Yours, Laurenz Albe From heikki@enterprisedb.com Wed Nov 7 09:52:29 2007 Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id BDB759F983A for ; Wed, 7 Nov 2007 05:52:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 78353-01-2 for ; Wed, 7 Nov 2007 05:52:07 -0400 (AST) Received: from ag-out-0708.google.com (ag-out-0708.google.com [72.14.246.246]) by postgresql.org (Postfix) with ESMTP id 3F7C89F981F for ; Wed, 7 Nov 2007 05:51:57 -0400 (AST) Received: by ag-out-0708.google.com with SMTP id 23so1228125agd for ; Wed, 07 Nov 2007 01:51:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; bh=l1bMLcGoiktWvpVHGR8tSN+qcu5/jRV6V+uwlZjUqeA=; b=dAbi8m2QWgODRf8oGEKMWDjdfr5qTNK7rY8Xs89N1CggDtw/IeWk9WgQZ83/rbDtG2Xkl5dsK/ubOYS0eM5pkzRaa8GvwkJAh/F8GmR3gN56txO9ckVrEZZJs3ZeyJuIPV0asYyUY9jUYBLQxk9/OqbLIXT5J1Q86CnfBLfVt3U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=RyFgJ2Av2rz5l6by2zbvXundzCuYUj4LrYPE85YD7EV8l9c74ZLip2E99DYg4tR+FI51E70GTKHL5OmnU8VBV33wl1p6/fNav6lZaKyfGnyhty8ytnnE1WjpgatjYUln9ABbQzyk3ha1XvobKVSjL0M+LaDQ0GD6vCAkLcEXJEA= Received: by 10.151.10.7 with SMTP id n7mr511947ybi.1194429114543; Wed, 07 Nov 2007 01:51:54 -0800 (PST) Received: from ?192.168.1.33? ( [86.27.231.25]) by mx.google.com with ESMTPS id c4sm3563487nfi.2007.11.07.01.51.49 (version=SSLv3 cipher=RC4-MD5); Wed, 07 Nov 2007 01:51:51 -0800 (PST) Message-ID: <47318AB1.4030003@enterprisedb.com> Date: Wed, 07 Nov 2007 09:51:45 +0000 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.12 (X11/20070730) MIME-Version: 1.0 To: Albe Laurenz CC: =?GB2312?B?zO/W0sDaICpFWFRFUk4q?= , pgsql-jdbc@postgresql.org Subject: Re: can i get your help? References: <394416293.05819@eyou.net> In-Reply-To: Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/19 X-Sequence-Number: 17774 Albe Laurenz wrote: > ÌïÖÒÀÚ wrote: >> I am a develop of java .and I use postgres ,too.but I want to >> use the command of ¡°copy¡±, but the using the jdbc driver, >> >> Can I use the the command ?and how can I can? I have try for >> serevel ways,but fails, can you help me.tthanks. > > There is no COPY support in the PostgreSQL JDBC driver. > > There has been a patch to enable COPY support, but it was > never added to the source. You may try your luck with this > if you are willing to put up with the trouble. > > http://archives.postgresql.org/pgsql-jdbc/2003-12/msg00186.php > > The patch is for version 7.4, so it will probably need work. There is a more recent patch by Kalle Hallivuori: http://kato.iki.fi/sw/db/postgresql/jdbc/copy/ I hope it gets included in the main driver soon. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com