pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Clemens Eisserer <linuxhippy@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: NullPointerException when calling ResultSet.absolute(int)
Date: Wed, 31 Aug 2005 13:50:23 -0500 (EST)
Message-ID: <Pine.BSO.4.62.0508311345400.11441@leary.csoft.net> (raw)
In-Reply-To: <194f6255050831113544c66c33@mail.gmail.com>
References: <194f625505082810015456609c@mail.gmail.com>
	<43122F3E.3040002@opencloud.com>
	<194f625505082904281f3ca75@mail.gmail.com>
	<43138AFC.20305@opencloud.com>
	<194f625505083010113345beb2@mail.gmail.com>
	<4314C691.4070006@opencloud.com>
	<194f6255050831113544c66c33@mail.gmail.com>



On Wed, 31 Aug 2005, Clemens Eisserer wrote:

>>> Does that mean that the whole data is fetched from the server as soon
>>> as I use scrollable result-sets?
>>
> I wonder how hard this would be to implement, is it more than just
> caching the already fetched rows - and how much does postgresql's
> native protocol has support for this task?

The frontend-backend protocol only supports fetching forward in a cursor 
(portal).  To scroll a resultset based on a cursor you would have to use 
direct SQL manipulation of the cursor MOVE/FETCH.  Someone tried this 
awhile ago and came close to a working solution.  The driver source has 
changed significantly since then and in a direction that makes this a 
tougher thing to do...

http://archives.postgresql.org/pgsql-jdbc/2004-05/threads.php#00164


> Where can I get the current jdbc-sourcecode?

http://jdbc.postgresql.org/development/cvs.html

Kris Jurka




view thread (9+ messages)

Message-ID: <Pine.BSO.4.62.0508311345400.11441@leary.csoft.net>
Permalink:  ../Pine.BSO.4.62.0508311345400.11441@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.62.0508311345400.11441@leary.csoft.net

 · 

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: books@ejurka.com, linuxhippy@gmail.com
  Subject: Re: NullPointerException when calling ResultSet.absolute(int)
  In-Reply-To: <Pine.BSO.4.62.0508311345400.11441@leary.csoft.net>
  References: <194f625505082810015456609c@mail.gmail.com> <43122F3E.3040002@opencloud.com> <194f625505082904281f3ca75@mail.gmail.com> <43138AFC.20305@opencloud.com> <194f625505083010113345beb2@mail.gmail.com> <4314C691.4070006@opencloud.com> <194f6255050831113544c66c33@mail.gmail.com> <Pine.BSO.4.62.0508311345400.11441@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