From: Oliver Jowett <oliver@opencloud.com>
To: Shawn Heisey <pgsql@elyograg.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Forcing cursor behavior
Date: Tue, 21 Jul 2009 22:02:30 +1200
Message-ID: <4A659236.2050305@opencloud.com> (raw)
In-Reply-To: <4A658E0F.1020608@elyograg.org>
References: <4A65248C.8040406@elyograg.org>
<4A6531CD.6040204@ttc-cmc.net>
<4A658E0F.1020608@elyograg.org>
Shawn Heisey wrote:
> To the person with the Cyrillic name that also responded ... how much
> effort would be involved in writing the delegating driver you described?
http://onjava.com/pub/a/onjava/2001/12/05/optimization.html may be a
useful starting point for this.
You'd basically want a set of wrappers as described there, plus a Driver
or Datasource implementation (depending on what your app uses) that
handled building a wrapper Connection around the real connection
obtained from the PostgreSQL driver. Then your wrapper implementations
can mangle autocommit and fetchsize as you see fit (and presumably not
delegate setAutoCommit(true) calls from the app down to the driver either)
-O
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: oliver@opencloud.com, pgsql@elyograg.org
Subject: Re: Forcing cursor behavior
In-Reply-To: <4A659236.2050305@opencloud.com>
References: <4A65248C.8040406@elyograg.org> <4A6531CD.6040204@ttc-cmc.net> <4A658E0F.1020608@elyograg.org> <4A659236.2050305@opencloud.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