Re: Cursors and Transactions, why? - Mailing list pgsql-general

From Eric Ridge
Subject Re: Cursors and Transactions, why?
Date
Msg-id C14C6DD7-88F4-11D8-91AB-000A95BB5944@tcdi.com
Whole thread Raw
In response to Re: Cursors and Transactions, why?  (Kris Jurka <books@ejurka.com>)
List pgsql-general
On Apr 7, 2004, at 2:01 PM, Kris Jurka wrote:

> The 7.4 jdbc driver has the ability to use cursors behind the scenes on
> queries.  This is done by calling Statement.setFetchSize(n) to
> retrieve n
> rows at a time.  There are a number of other restrictions: you must be
> in
> a transaction and the ResultSet type must be FORWARD_ONLY.  You can use
> the 7.4 jdbc driver against a 7.3 server as well so this may provide
> some
> relief.

I remember reading about this long ago.  It's not really an option in
my little world because of the open transaction bit.  My solution is
eventually going to be to upgrade to 7.4... heh, probably about the
time 7.5 is released.  *sigh*

eric


pgsql-general by date:

Previous
From: Joe Conway
Date:
Subject: Re: Cursors and Transactions, why?
Next
From: Eric Ridge
Date:
Subject: Re: Cursors and Transactions, why?