pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
JDBC3 + HOLD_CURSORS_OVER_COMMIT
3+ messages / 2 participants
[nested] [flat]

* JDBC3 + HOLD_CURSORS_OVER_COMMIT
@ 2004-07-20 21:38  Oliver Jowett <oliver@opencloud.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Oliver Jowett @ 2004-07-20 21:38 UTC (permalink / raw)
  To: pgsql-jdbc

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..

-O



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: JDBC3 + HOLD_CURSORS_OVER_COMMIT
@ 2004-07-20 21:49  Peter Eisentraut <peter_e@gmx.net>
  parent: Oliver Jowett <oliver@opencloud.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Peter Eisentraut @ 2004-07-20 21:49 UTC (permalink / raw)
  To: Oliver Jowett <oliver@opencloud.com>; pgsql-jdbc

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.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: JDBC3 + HOLD_CURSORS_OVER_COMMIT
@ 2004-07-20 21:53  Oliver Jowett <oliver@opencloud.com>
  parent: Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Oliver Jowett @ 2004-07-20 21:53 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-07-20 21:53 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-07-20 21:38 JDBC3 + HOLD_CURSORS_OVER_COMMIT Oliver Jowett <oliver@opencloud.com>
2004-07-20 21:49 ` Peter Eisentraut <peter_e@gmx.net>
2004-07-20 21:53   ` Oliver Jowett <oliver@opencloud.com>

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