pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC3 + HOLD_CURSORS_OVER_COMMIT
Date: Wed, 21 Jul 2004 09:53:07 +1200
Message-ID: <40FD9443.7000301@opencloud.com> (raw)
In-Reply-To: <200407202349.13775.peter_e@gmx.net>
References: <40FD90F2.1010006@opencloud.com>
	<200407202349.13775.peter_e@gmx.net>

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



view thread (3+ messages)

Message-ID: <40FD9443.7000301@opencloud.com>
Permalink:  ../40FD9443.7000301@opencloud.com/
Also on:    postgresql.org/message-id/40FD9443.7000301@opencloud.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: oliver@opencloud.com, peter_e@gmx.net
  Subject: Re: JDBC3 + HOLD_CURSORS_OVER_COMMIT
  In-Reply-To: <40FD9443.7000301@opencloud.com>
  References: <40FD90F2.1010006@opencloud.com> <200407202349.13775.peter_e@gmx.net> <40FD9443.7000301@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