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 AF95311F664F for ; Mon, 3 Apr 2006 20:04:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61712-03 for ; Mon, 3 Apr 2006 20:04:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 8B0D511F6009 for ; Mon, 3 Apr 2006 20:04:10 -0300 (ADT) Received: (qmail 24254 invoked from network); 3 Apr 2006 23:04:09 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 3 Apr 2006 23:04:09 -0000 In-Reply-To: <845AADAC1106E44996327D62097E4C6B8AA6BC@et.ad.sdsc.edu> References: <845AADAC1106E44996327D62097E4C6B8AA6BC@et.ad.sdsc.edu> Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: multipart/alternative; boundary=Apple-Mail-30-442007892 Message-Id: <36891C5A-13CC-49C8-AF27-E212A253E97A@fastcrypt.com> Cc: From: Dave Cramer Subject: Re: psql COPY with JDBC Date: Mon, 3 Apr 2006 19:04:08 -0400 To: Christopher Condit X-Mailer: Apple Mail (2.746.3) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.137 required=5 tests=[AWL=0.136, HTML_MESSAGE=0.001] X-Spam-Score: 0.137 X-Spam-Level: X-Archive-Number: 200604/23 X-Sequence-Number: 14957 --Apple-Mail-30-442007892 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Yeah, there is a patch, this is rather old now but will do copy. http://download.postgresintl.com/copy.tar.gz Dave On 3-Apr-06, at 4:36 PM, Christopher Condit wrote: > Hi All- > > I=92ve been trying over at the general postgres list with no luck, so =20= > I thought I=92d try here. I need to bulk load results from a Java =20 > application on one machine to a postgres db on a remote server. I =20 > know I can use psql interactively to accomplish this, but I=92d like =20= > to be able to do it programmatically: > > 1) I noticed that there was a COPY patch floating around a =20 > couple of years ago =96 does this still exist. If so, has it been =20 > updated for the latest JDBC driver? > > 2) Is there a better way to accomplish this than the above =20 > patch =96 with or without JDBC? > > > > Thanks for your time! > > > > Chris > > --Apple-Mail-30-442007892 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=WINDOWS-1252 Yeah, there is a patch, this is = rather old now but will do copy.


Dave
On = 3-Apr-06, at 4:36 PM, Christopher Condit wrote:

Hi All-I=92ve been trying = over at the general postgres list with no luck, so I thought I=92d try = here.=A0 I need to bulk load results from a Java application on one = machine to a postgres db on a remote server.=A0 I know I can use psql = interactively to accomplish this, but I=92d like to be able to do it = programmatically:

1)=A0=A0=A0=A0=A0=A0 = I noticed that there was a COPY patch = floating around a couple of years ago =96 does this still exist.=A0 If = so, has it been updated for the latest JDBC driver?2)=A0=A0=A0=A0=A0=A0 = Is there a better way to accomplish = this than the above patch =96 with or without JDBC?=A0

Thanks for your time!=A0

Chris



= --Apple-Mail-30-442007892--