Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 73E3F9FBD23 for ; Wed, 30 May 2007 11:47:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 53706-01 for ; Wed, 30 May 2007 11:47:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from beaver.fastcrypt.com (beaver.fastcrypt.com [64.7.141.17]) by postgresql.org (Postfix) with ESMTP id 64C319FB7C0 for ; Wed, 30 May 2007 11:47:09 -0300 (ADT) Received: from [192.168.1.14] (dcdsl.ebox.com [64.7.143.116]) by beaver.fastcrypt.com (Postfix) with ESMTP id A75C61580669; Wed, 30 May 2007 10:56:14 -0400 (EDT) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <66D125B2-3C81-467E-BC02-D784ACDD5499@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: FYI: porting Copy API to 8.x Date: Wed, 30 May 2007 10:47:06 -0400 To: Kalle Hallivuori X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/66 X-Sequence-Number: 17056 Kalle, The reason that the patch has never been officially accepted is because it creates two protocol paths. To do this correctly you need to add the copy functionality into the current protocol handler as opposed to having a separate protocol handler for copy. Dave On 30-May-07, at 8:29 AM, Kalle Hallivuori wrote: > Hi! > > I'm porting the Copy API to 8.x series of pgjdbc. You may expect a > patch at the commit list this week. > > I've copied Chris Jurka's patch for the 7.x series from here: > http://archives.postgresql.org/pgsql-jdbc/2003-12/msg00186.php > > I'm just modifying that old patch to fit current implementation. > Suggestions for enhancements or alternative approaches are welcome so > long as they are sufficiently trivial to implement :) > > Should this patched patch get accepted for inclusion it might make it > into official distribution for 8.4. Otherwise (and meanwhile) people > will have to keep building their own drivers in order to be able to > use COPY TO/FROM STDIN. > > -- > Kalle Hallivuori +358-41-5053073 http://korpiq.iki.fi/ > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq