pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Jeffrey Tenny <jeffrey.tenny@comcast.net>
Cc: postgres jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: setFetchSize() not working
Date: Mon, 11 Oct 2004 09:20:10 +1300
Message-ID: <4169997A.2060109@opencloud.com> (raw)
In-Reply-To: <41694A5C.3050402@comcast.net>
References: <41694A5C.3050402@comcast.net>

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?

Use a newer backend or an older driver. The development driver only 
supports cursors when using a V3 protocol connection (supported from 7.4 
onwards). You probably want a newer backend anyway even if only the 
newest 7.3.x, there are data-loss bugs in earlier 7.3 versions.

There's no real reason that V2 can't use cursors, it's just that the 
support has not been reimplemented for the changed protocol layer framework.

In general all the new driver work is happening against 7.4/8.0 
backends. We do test for correct behaviour against 7.3 servers, but 
there are no guarantees that the driver is going to perform as well.

-O



view thread (3+ messages)

Message-ID: <4169997A.2060109@opencloud.com>
Permalink:  ../4169997A.2060109@opencloud.com/
Also on:    postgresql.org/message-id/4169997A.2060109@opencloud.com

 · 

reply

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: oliver@opencloud.com, jeffrey.tenny@comcast.net
  Subject: Re: setFetchSize() not working
  In-Reply-To: <4169997A.2060109@opencloud.com>
  References: <41694A5C.3050402@comcast.net> <4169997A.2060109@opencloud.com>

* 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