Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0AA59B5D95B for ; Wed, 26 Oct 2011 19:37:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 47483-05 for ; Wed, 26 Oct 2011 22:37:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from hogranch.com (hogranch.com [75.101.82.47]) by mail.postgresql.org (Postfix) with ESMTP id 96056B5D80A for ; Wed, 26 Oct 2011 19:37:51 -0300 (ADT) Received: from [127.0.0.1] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id p9QMbk724783 for ; Wed, 26 Oct 2011 15:37:46 -0700 Message-ID: <4EA88BBA.4010005@hogranch.com> Date: Wed, 26 Oct 2011 15:37:46 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: setFetchSize 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> <1319660527207-4941054.post@n5.nabble.com> In-Reply-To: <1319660527207-4941054.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/70 X-Sequence-Number: 22323 On 10/26/11 1:22 PM, fschmidt wrote: > 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. so now vacuum needs to pay attention to the oldest pending result set as well as the oldest transaction? hmmm. -- john r pierce N 37, W 122 santa cruz ca mid-left coast