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 0C33ED1B182 for ; Thu, 20 May 2004 17:56:36 -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 14201-07 for ; Thu, 20 May 2004 17:56:18 -0300 (ADT) Received: from vsmtp3alice.tin.it (vsmtp3alice.tin.it [212.216.176.143]) by svr1.postgresql.org (Postfix) with ESMTP id BA8C7D1B26E for ; Thu, 20 May 2004 17:56:15 -0300 (ADT) Received: from host223-78.pool80180.interbusiness.it (80.180.78.223) by vsmtp3alice.tin.it (7.0.027) id 40AB7644000104E5; Thu, 20 May 2004 22:55:34 +0200 From: Andrea Aime To: pg@fastcrypt.com Subject: Re: Queries with large ResultSets Date: Thu, 20 May 2004 22:56:41 +0200 User-Agent: KMail/1.6.1 Cc: Tom Lane , Kris Jurka , Jack Orenstein , "pgsql-jdbc@postgresql.org" References: <40ABD19C.8080109@geophile.com> <200405202127.11956.andrea.aime@aliceposta.it> <1085083413.1585.3.camel@localhost.localdomain> In-Reply-To: <1085083413.1585.3.camel@localhost.localdomain> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200405202256.41349.andrea.aime@aliceposta.it> X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=2.5 tagged_above=0.0 required=5.0 tests=RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_NJABL, RCVD_IN_SORBS X-Spam-Level: ** X-Archive-Number: 200405/130 X-Sequence-Number: 10140 Alle 22:03, gioved=EC 20 maggio 2004, Dave Cramer ha scritto: > You can use a holdable cursor, and get a cursor outside of a > transaction, but beware, postgres has to store this somewhere, and it's > not update-able Store it somewhere means that it has to write the result of the query to persistent storage and then provide scrolling over it? It's not the best way to do things since in the case of geoserver the query result can be several megabytes (gis data)... Anyway, how do I get such a cursor using the JDBC driver?=20 Moreover, would the hack of calling commit() at the end of every operation in order to simulate an autocommit connection work? Best regards Andrea Aime