Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 529DDB5DBFC for ; Wed, 26 Oct 2011 03:09:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 84792-02 for ; Wed, 26 Oct 2011 06:09:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id C3BFDB5DBFB for ; Wed, 26 Oct 2011 03:09:22 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RIwfx-0001sP-Ap for pgsql-jdbc@postgresql.org; Tue, 25 Oct 2011 23:09:21 -0700 Date: Tue, 25 Oct 2011 23:09:21 -0700 (PDT) From: fschmidt To: pgsql-jdbc@postgresql.org Message-ID: <1319609361329-4938781.post@n5.nabble.com> In-Reply-To: <28079.1319575241@sss.pgh.pa.us> References: <1319525123309-4935215.post@n5.nabble.com> <1319573262782-4937529.post@n5.nabble.com> <28079.1319575241@sss.pgh.pa.us> Subject: Re: setFetchSize MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.767 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201110/62 X-Sequence-Number: 22315 Okay I see the documentation saying portals die at the end of a transaction, here: http://developer.postgresql.org/pgdocs/postgres/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY But looking at the JDBC code, the main use I see of portals is for setFetchSize(). And setFetchSize() is badly crippled in its current implementation. Is there any fundamental reason that portals can't be made to survive commits, like cursors WITH HOLD? This would result in a reasonable implementation of setFetchSize(). For now I have given up on setFetchSize() as useless for my application, and I use "select ... order by something-unique limit fetch-size offset how-much-has-been-read". This is a bad hack. I would much rather use a functional implementation of setFetchSize(). Is there any chance I will get one? -- View this message in context: http://postgresql.1045698.n5.nabble.com/setFetchSize-tp4935215p4938781.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.