X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EDF9BD1B16E for ; Tue, 20 Jul 2004 18:53:14 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48827-07 for ; Tue, 20 Jul 2004 21:53:14 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 8B4B8D1B1AE for ; Tue, 20 Jul 2004 18:53:11 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1Bn2Xt-00028p-00; Wed, 21 Jul 2004 09:53:09 +1200 Message-ID: <40FD9443.7000301@opencloud.com> Date: Wed, 21 Jul 2004 09:53:07 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Eisentraut Cc: "pgsql-jdbc@postgresql.org" Subject: Re: JDBC3 + HOLD_CURSORS_OVER_COMMIT References: <40FD90F2.1010006@opencloud.com> <200407202349.13775.peter_e@gmx.net> In-Reply-To: <200407202349.13775.peter_e@gmx.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/242 X-Sequence-Number: 10626 Peter Eisentraut wrote: > Oliver Jowett wrote: > >>It occurred to me that we can support JDBC3's >>HOLD_CURSORS_OVER_COMMIT behaviour quite simply by doing the same >>thing we do with scrollable resultsets -- disable use of cursors >>entirely. >> >>Does this sound worth doing? Obviously we could replace it with >>proper WITH HOLD cursor-backed resultsets eventually.. > > > PostgreSQL 7.4 supports holdable cursors. Yes, but the JDBC driver doesn't have the necessary logic to use them -- it always uses V3 protocol-level portals which can't be made WITH HOLD. Disabling cursor use when the JDBC app wants a holdable cursor is a small change. Adding support for cursors via DECLARE is a big change. (also see my soon-to-be-sent message about V3 + DECLARE -- using DECLARE looks like it's not an option for us currently) -O