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