Re: Cursors and Transactions, why?

From: Eric Ridge <ebr(at)tcdi(dot)com>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: Pgsql-General <pgsql-general(at)postgresql(dot)org>, Jan Wieck <JanWieck(at)Yahoo(dot)com>
Subject: Re: Cursors and Transactions, why?
Date: 2004-04-08 00:36:20
Message-ID: C14C6DD7-88F4-11D8-91AB-000A95BB5944@tcdi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Eric Ridge 2004-04-08 00:38:34 Re: Cursors and Transactions, why?
Previous Message Joe Conway 2004-04-07 23:48:26 Re: Cursors and Transactions, why?