pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Kalle Hallivuori <kato@iki.fi>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: FYI: porting Copy API to 8.x
Date: Thu, 31 May 2007 14:56:57 -0400
Message-ID: <B59ADA13-6701-4562-B669-9C601D62FC5F@fastcrypt.com> (raw)
In-Reply-To: <c637d8bb0705301245k72336d56i53335c9f26b79746@mail.gmail.com>
References: <c637d8bb0705300529y6dfd9938o21b4921f5efae39a@mail.gmail.com>
	<66D125B2-3C81-467E-BC02-D784ACDD5499@fastcrypt.com>
	<c637d8bb0705301245k72336d56i53335c9f26b79746@mail.gmail.com>

Hi Kalle,


On 30-May-07, at 3:45 PM, Kalle Hallivuori wrote:

> Hi Dave!
>
> 2007/5/30, Dave Cramer <pg@fastcrypt.com>:
>> 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.
>
> Thanks, now I understand why it's not there. I can take a look at
> alternative approaches tomorrow, and only go with the ugly one if I
> don't come up with an (moderately easily implementable) acceptable
> design.
>
> Is it more of an open design problem that many people have looked
> closely into, or rather just a matter of someone getting to it? Ie. is
> it likely there is no clean way to add these special cases inside the
> protocol handler?
>
> As for redesign, which would be the least abhorred way of providing
> the functionality for use:
>
> 1. Separate Copy API available via a getCopyAPI() method in  
> PGConnection API?
> 2. Separate Copy API available with some cleaner approach, which?
> 3. Special Copy methods in PGConnection API?
> 4. Special cases to batch processing (FROM STDIN) and resultset
> collecting (TO STDOUT)?
> 5. Special cases to some other part of the standard JDBC API, which?
>
I think you have to make it an extension somehow. I'd leave  
getCopyAPI in place, I think the harder part is getting the protocol  
to work,
> Cheers,
>
> -- 
> 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




view thread (10+ messages)  latest in thread

Message-ID: <B59ADA13-6701-4562-B669-9C601D62FC5F@fastcrypt.com>
Permalink:  ../B59ADA13-6701-4562-B669-9C601D62FC5F@fastcrypt.com/
Also on:    postgresql.org/message-id/B59ADA13-6701-4562-B669-9C601D62FC5F@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, kato@iki.fi
  Subject: Re: FYI: porting Copy API to 8.x
  In-Reply-To: <B59ADA13-6701-4562-B669-9C601D62FC5F@fastcrypt.com>
  References: <c637d8bb0705300529y6dfd9938o21b4921f5efae39a@mail.gmail.com> <66D125B2-3C81-467E-BC02-D784ACDD5499@fastcrypt.com> <c637d8bb0705301245k72336d56i53335c9f26b79746@mail.gmail.com> <B59ADA13-6701-4562-B669-9C601D62FC5F@fastcrypt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox