Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 8804B6350C4 for ; Mon, 18 May 2009 19:10:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 28156-01-2 for ; Mon, 18 May 2009 19:10:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id 0C84C6342F4 for ; Mon, 18 May 2009 19:10:44 -0300 (ADT) Received: by leary.csoft.net (Postfix, from userid 1112) id EFB86A2ED; Mon, 18 May 2009 18:10:41 -0400 (EDT) Date: Mon, 18 May 2009 18:10:41 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Clemens Eisserer cc: pgsql-jdbc@postgresql.org Subject: Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets? In-Reply-To: <194f62550905181217o3b8eba63kea864c7b8d7f288e@mail.gmail.com> Message-ID: References: <194f62550905171035u3316ebddwc11e6680f51dcba5@mail.gmail.com> <194f62550905181217o3b8eba63kea864c7b8d7f288e@mail.gmail.com> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/94 X-Sequence-Number: 19644 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