From: Kalle Hallivuori <kato@iki.fi>
To: pgsql-jdbc@postgresql.org
Subject: Bulk copy with connection locking patch
Date: Thu, 2 Aug 2007 11:11:57 +0300
Message-ID: <c637d8bb0708020111k559d526fuaf8febde1de0cf5b@mail.gmail.com> (raw)
Hi again.
I added a new proposal patch at http://kato.iki.fi/sw/db/postgresql/jdbc/copy/
It locks the QueryExecutor and thus the connection so that control can
return to user while the connection is in Copy state. It's
considerably more code than the minimal version, but provides copying
into database as an OutputStream and from database as an InputStream,
which might be considered more logical usage.
It's only for 8.2 for now; I'll be able to clean it up for other
versions next week or so. I could also write unit tests of thread
conflicts etc. if there is any interest in this approach.
I could provide wrapper classes for object-based copying once we
settle on an implementation of the stream level approach. Oh, and I'd
be willing to try my hands on binary copy wrapping as well.
I'd be pleased to have any input about this approach.
Hope this helps someone,
--
Kalle Hallivuori +358-41-5053073 http://korpiq.iki.fi/
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: Bulk copy with connection locking patch
In-Reply-To: <c637d8bb0708020111k559d526fuaf8febde1de0cf5b@mail.gmail.com>
References: <c637d8bb0708020111k559d526fuaf8febde1de0cf5b@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