From: Oliver Jowett <oliver@opencloud.com>
To: Geert Bevin <gbevin@uwyn.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Resultset holdability
Date: Sat, 22 Oct 2005 12:01:24 +1300
Message-ID: <43597344.3080005@opencloud.com> (raw)
In-Reply-To: <186ADB46-C466-4163-8596-B3BB9EB34D35@uwyn.com>
References: <D38F6D5C-FEDE-4ABB-9D1B-B09BC9B451E9@uwyn.com>
<4359576D.8050304@opencloud.com>
<186ADB46-C466-4163-8596-B3BB9EB34D35@uwyn.com>
Geert Bevin wrote:
>> Have you turned autocommit off?
>
> No
The driver won't use portal-based resultsets unless you turn off
autocommit. This is because it can't create the equivalent of a WITH
HOLD cursor via protocol-level portals, so any portal created will be
closed at the end of the creating transaction. With autocommit on, the
transaction ends immediately after statement execution, so using a
portal is pointless.
Otherwise it sounds like you meet all the requirements (V3 protocol,
TYPE_FORWARD_ONLY, and fetchsize > 0).
-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, gbevin@uwyn.com
Subject: Re: Resultset holdability
In-Reply-To: <43597344.3080005@opencloud.com>
References: <D38F6D5C-FEDE-4ABB-9D1B-B09BC9B451E9@uwyn.com> <4359576D.8050304@opencloud.com> <186ADB46-C466-4163-8596-B3BB9EB34D35@uwyn.com> <43597344.3080005@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