pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kalle Hallivuori <kato@iki.fi>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: FYI: porting Copy API to 8.x
Date: Fri, 8 Jun 2007 14:05:41 +0300
Message-ID: <c637d8bb0706080405j7fc53c65p139c4bbc2a10cc45@mail.gmail.com> (raw)
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>

Hi again.

I have an implementation of COPY subprotocol support that is
implemented inside org.postgresql.core.v3.QueryExecutorImpl and used
via a clean API available from PGConnection.getCopyAPI(). I'm trying
to test it today and commit the patch next week.

To ensure inclusion in the official source, I tried to follow the way
Fastpath was implemented.

In this implementation a COPY SQL statement is executed normally,
after which the response from server initiating COPY subprotocol is
handled in the usual processResults(). After that, specific methods
must be used to exchange copydata with the server and return to normal
protocol. All responses from server during that time are handled in a
separate private processCopyResults() method.

Alternatively processCopyResults() could be merged into
processResults() or separate everything COPY-related from there,
keeping it as it was. Opinions?

-- 
Kalle Hallivuori +358-41-5053073 http://korpiq.iki.fi/



view thread (10+ messages)  latest in thread

Message-ID: <c637d8bb0706080405j7fc53c65p139c4bbc2a10cc45@mail.gmail.com>
Permalink:  ../c637d8bb0706080405j7fc53c65p139c4bbc2a10cc45@mail.gmail.com/
Also on:    postgresql.org/message-id/c637d8bb0706080405j7fc53c65p139c4bbc2a10cc45@mail.gmail.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: kato@iki.fi
  Subject: Re: FYI: porting Copy API to 8.x
  In-Reply-To: <c637d8bb0706080405j7fc53c65p139c4bbc2a10cc45@mail.gmail.com>
  References: <c637d8bb0705300529y6dfd9938o21b4921f5efae39a@mail.gmail.com> <66D125B2-3C81-467E-BC02-D784ACDD5499@fastcrypt.com> <c637d8bb0705301245k72336d56i53335c9f26b79746@mail.gmail.com> <B59ADA13-6701-4562-B669-9C601D62FC5F@fastcrypt.com> <c637d8bb0706080405j7fc53c65p139c4bbc2a10cc45@mail.gmail.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