Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 449C7B5DC31 for ; Wed, 26 Oct 2011 17:22:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 90478-04 for ; Wed, 26 Oct 2011 20:22:08 +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 9216AB5DC29 for ; Wed, 26 Oct 2011 17:22:08 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RJ9zD-0004cE-6u for pgsql-jdbc@postgresql.org; Wed, 26 Oct 2011 13:22:07 -0700 Date: Wed, 26 Oct 2011 13:22:07 -0700 (PDT) From: fschmidt To: pgsql-jdbc@postgresql.org Message-ID: <1319660527207-4941054.post@n5.nabble.com> In-Reply-To: References: <1319525123309-4935215.post@n5.nabble.com> <1319573262782-4937529.post@n5.nabble.com> <28079.1319575241@sss.pgh.pa.us> <1319609361329-4938781.post@n5.nabble.com> <1319644122794-4940158.post@n5.nabble.com> 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/69 X-Sequence-Number: 22322 Dave Cramer-8 wrote: > > My understanding is this: Postgresql is an MVCC database and can > easily provide you with a snapshot of a resultset inside a > transaction. Outside a transaction my bet is that the data has to be > copied to a temporary location somewhere, so if this is done over N > connections the resources required could be substantial. > The solution is very simple. Just keep the version associated with the current resultset around until the resultset is closed. This is basically the same as having another connection, but in this case, each resultset on the connection should use the version that was associated with the connection when the resultset was opened. > Well every database I know of has it's idiosyncrasies, an as I said > the JDBC spec makes no guarantees of what setFetchSize should do if > anything. > The JDBC spec also makes no guarantees that the database shouldn't crash. The purpose of a spec isn't to limit what is provided to users, rather it is to provide the minimum functionality that users can assume across implementations. -- View this message in context: http://postgresql.1045698.n5.nabble.com/setFetchSize-tp4935215p4941054.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.