Re: ResultSet & setFetchSize fails to stop heap failures

From: Kris Jurka <books(at)ejurka(dot)com>
To: "U(dot) George" <netbeans(at)gatworks(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: ResultSet & setFetchSize fails to stop heap failures
Date: 2008-05-28 19:34:34
Message-ID: Pine.BSO.4.64.0805281533140.23353@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Wed, 28 May 2008, U. George wrote:

> The resultset is a very large set of rows ( each row 2 ints and a
> bunch of doubles ) . I am unable to convince jdbc to fetch one row at
> a time, and avoid the heap failure.
> Is there a way, or just a bug, or feature deficiency?

To do partial fetches you must turn autocommit off. See:

http://jdbc.postgresql.org/documentation/83/query.html#query-with-cursor

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message U. George 2008-05-28 20:15:32 Re: ResultSet & setFetchSize fails to stop heap failures
Previous Message U. George 2008-05-28 19:09:47 ResultSet & setFetchSize fails to stop heap failures