From: Kris Jurka <books@ejurka.com>
To: Clemens Eisserer <linuxhippy@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets?
Date: Mon, 18 May 2009 18:10:41 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.0905181802370.20696@leary.csoft.net> (raw)
In-Reply-To: <194f62550905181217o3b8eba63kea864c7b8d7f288e@mail.gmail.com>
References: <194f62550905171035u3316ebddwc11e6680f51dcba5@mail.gmail.com>
<alpine.BSO.2.00.0905181014070.233@leary.csoft.net>
<194f62550905181217o3b8eba63kea864c7b8d7f288e@mail.gmail.com>
On Mon, 18 May 2009, Clemens Eisserer wrote:
> Is it just the jdbc-driver lacking that functionality, or is backend
> functionality missing too?
>
You can look at it both ways. Around the 7.4 release we had a patch that
almost worked for scrollable, cursor based resultsets, but it had some
bugs and never got committed. At the time the driver converted queries to
explicit DECLARE CURSOR statements and then the patch made it do MOVE and
FETCH commands to retrieve the desired data. For the 8.0 release the
driver was rewritten to use protocol level commands to create "portals"
which are more or less equivalent to cursors. Unfortunately portals can
only move forward so they aren't scrollable. The JDBC team's position is
that the backend and protocol lack support for scrollable portals and
that's what we're waiting for to implement this feature.
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, linuxhippy@gmail.com
Subject: Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets?
In-Reply-To: <alpine.BSO.2.00.0905181802370.20696@leary.csoft.net>
References: <194f62550905171035u3316ebddwc11e6680f51dcba5@mail.gmail.com> <alpine.BSO.2.00.0905181014070.233@leary.csoft.net> <194f62550905181217o3b8eba63kea864c7b8d7f288e@mail.gmail.com> <alpine.BSO.2.00.0905181802370.20696@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