From: Kris Jurka <books@ejurka.com>
To: Jeffrey Tenny <jeffrey.tenny@comcast.net>
Cc: postgres jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: setFetchSize() not working
Date: Sun, 10 Oct 2004 13:25:09 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0410101318300.61@leary.csoft.net> (raw)
In-Reply-To: <41694A5C.3050402@comcast.net>
References: <41694A5C.3050402@comcast.net>
On Sun, 10 Oct 2004, Jeffrey Tenny wrote:
> I'm using the 7.3.3 backend, and the JDBC 8.0dev jdbc driver
> (pgdev.306.jdbc3.jar).
>
> I'm calling PreparedStatement.setFetchSize(32), on a table fetching 32KB
> BYTEA records, and I'm blowing out memory on the executeQuery() call
> of the prepared statement.
>
> PreparedStatement.getFetchDirection reports 1000, which is
> ResultSet.FETCH_FORWARD.
>
> Any clues?
>
The development driver has had cursor based fetching support removed when
connecting to servers older than 7.4. The 7.4 release had a new
frontend/backend protocol added which allows for an alternate method of
streaming ResultSets. The 7.4 driver used the old method, but
the development driver was updated to use the new method and in doing that
support for streaming using the old protocol was removed. Your options
seem to be:
- update your server to 7.4 or later
- use the 7.4 driver against your 7.3 server
- figure out had to re-add support for streaming resultsets from old
servers to the new driver.
Kris Jurka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, jeffrey.tenny@comcast.net
Subject: Re: setFetchSize() not working
In-Reply-To: <Pine.BSO.4.56.0410101318300.61@leary.csoft.net>
References: <41694A5C.3050402@comcast.net> <Pine.BSO.4.56.0410101318300.61@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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