X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1C823D1D84A for ; Wed, 19 Nov 2003 13:14:40 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 69844-04 for ; Wed, 19 Nov 2003 09:14:12 -0400 (AST) Received: from goose.mail.pas.earthlink.net (goose.mail.pas.earthlink.net [207.217.120.18]) by svr1.postgresql.org (Postfix) with ESMTP id CF9DDD1D729 for ; Wed, 19 Nov 2003 09:14:08 -0400 (AST) Received: from user-2ivei5a.dialup.mindspring.com ([165.247.72.170] helo=linux.local) by goose.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1AMS9l-0003xu-00; Wed, 19 Nov 2003 05:14:06 -0800 From: ritchie turner Organization: ipowerhouse.com To: Kris Jurka Subject: Re: COPY support Date: Wed, 19 Nov 2003 05:13:51 -0500 User-Agent: KMail/1.5.1 Cc: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311190513.52157.ritchie@ipowerhouse.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/129 X-Sequence-Number: 8682 Thanks for the info Kris, I suspected that may be the case. Cheers Ritchie On Monday 17 November 2003 23:25, Kris Jurka wrote: > On Mon, 17 Nov 2003, ritchie turner wrote: > > I'm trying to optimise some sql inserts I have by using the COPY command > > instead. I'm connecting from Java using 7.4 beta 3. It works at the > > command line, but I can't get it to work from Java. I'm doing an > > executeUpdate() on the COPY string below in the hope it works, but .... > > COPY requires special protocol level support so this won't work. > > > I see there was some traffic on this list regard special copy support in > > the driver, did it make it in? Can't see it. > > In February of last year Michael Adler made a patch to support copy, but > it was rejected because the copy protocol was broken and a bad copy would > completely hose your Connection. With the new V3 protocol in 7.4 it makes > copy errors recoverable so it can be implemented safely. It's on my todo > list to update his patch for the current driver, but I haven't gotten to > it. > > Kris Jurka > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster