Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 1BC4F633CAF for ; Tue, 21 Jul 2009 07:05:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 50672-05 for ; Tue, 21 Jul 2009 07:05:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id E6C9E633A4E for ; Tue, 21 Jul 2009 07:02:38 -0300 (ADT) Received: from 125-237-255-118.jetstream.xtra.co.nz ([125.237.255.118] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1MTCB6-0004Ts-5A; Tue, 21 Jul 2009 22:02:32 +1200 Message-ID: <4A659236.2050305@opencloud.com> Date: Tue, 21 Jul 2009 22:02:30 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: Shawn Heisey CC: pgsql-jdbc@postgresql.org Subject: Re: Forcing cursor behavior References: <4A65248C.8040406@elyograg.org> <4A6531CD.6040204@ttc-cmc.net> <4A658E0F.1020608@elyograg.org> In-Reply-To: <4A658E0F.1020608@elyograg.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200907/49 X-Sequence-Number: 19817 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