JDBC3 + HOLD_CURSORS_OVER_COMMIT
JDBC3 + HOLD_CURSORS_OVER_COMMIT
От:
Oliver Jowett <oliver@opencloud.com>
Дата:
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
Re: JDBC3 + HOLD_CURSORS_OVER_COMMIT
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
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/
Re: JDBC3 + HOLD_CURSORS_OVER_COMMIT
От:
Oliver Jowett <oliver@opencloud.com>
Дата:
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