X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 584ACD1B16A for ; Fri, 21 May 2004 08:39:17 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 15642-04 for ; Fri, 21 May 2004 08:39:00 -0300 (ADT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id B4AAFD1B18A for ; Fri, 21 May 2004 08:38:56 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BR8Mb-0008Ik-00; Fri, 21 May 2004 23:38:57 +1200 Message-ID: <40ADEA4D.7080303@opencloud.com> Date: Fri, 21 May 2004 23:38:53 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pg@fastcrypt.com Cc: pgsql-jdbc@postgresql.org Subject: Re: Queries with large ResultSets References: <40ABD19C.8080109@geophile.com> <200405202022.37646.andrea.aime@aliceposta.it> <40AD3733.5000905@opencloud.com> <1085138839.1591.26.camel@localhost.localdomain> In-Reply-To: <1085138839.1591.26.camel@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200405/149 X-Sequence-Number: 10159 Dave Cramer wrote: > There's some confusion as to whether a cursor is materialized even > inside a transaction. It could be that complicated queries will be > stored on the disk too. The docs cover this. Executive summary: SCROLL cursors might be more expensive than NO SCROLL cursors, depending on the query. It's a separate issue to WITH HOLD / WITHOUT HOLD as far as I know. http://www.postgresql.org/docs/7.4/static/sql-declare.html -O