From: Oliver Jowett <oliver@opencloud.com>
To: Dave Smith <dave.smith@candata.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug in setFetchSize
Date: Fri, 03 Dec 2004 10:20:39 +1300
Message-ID: <41AF8727.90404@opencloud.com> (raw)
In-Reply-To: <1102005138.4563.9.camel@playpen.candata.com>
References: <1102005138.4563.9.camel@playpen.candata.com>
Dave Smith wrote:
> We are using pg80b1.308.jdbc3.jar with pg 7.4.5 and trying to use
> setFetchSize on Statement.
>
> Once we try and fetch outside the value we have set for fetchSize we get
> ERROR: portal "C_4" does not exist
The only case I can think of this happening is if you are trying to use
a ResultSet after the transaction that created it has committed or
rolled back.
You're not meant to do that unless you specify HOLD_CURSORS_OVER_COMMIT
(which the driver will currently reject as unsupported). The driver does
not explicitly close ResultSets on commit, but the server closes the
underlying cursor so you see this error.
If that's not the scenario, can you provide some sample code that
demonstrates the problem?
> So it looks like you are using fetchSize as an absolute size, which is
> not my reading of the spec.
I don't understand your analysis.
-O
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, dave.smith@candata.com
Subject: Re: Bug in setFetchSize
In-Reply-To: <41AF8727.90404@opencloud.com>
References: <1102005138.4563.9.camel@playpen.candata.com> <41AF8727.90404@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