X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D236CD8738 for ; Wed, 31 Aug 2005 15:50:25 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 16367-05 for ; Wed, 31 Aug 2005 18:50:22 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 4F058D872A for ; Wed, 31 Aug 2005 15:50:21 -0300 (ADT) Received: (qmail 25022 invoked by uid 1112); 31 Aug 2005 18:50:23 -0000 Date: Wed, 31 Aug 2005 13:50:23 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Clemens Eisserer Cc: pgsql-jdbc@postgresql.org Subject: Re: NullPointerException when calling ResultSet.absolute(int) In-Reply-To: <194f6255050831113544c66c33@mail.gmail.com> Message-ID: 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200508/212 X-Sequence-Number: 13781 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