Skip site navigation (1) Skip section navigation (2)

Re: Queries with large ResultSets

From: Andrea Aime <andrea(dot)aime(at)aliceposta(dot)it>
To: pg(at)fastcrypt(dot)com
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Kris Jurka <books(at)ejurka(dot)com>,Jack Orenstein <jao(at)geophile(dot)com>,"pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Queries with large ResultSets
Date: 2004-05-20 20:56:41
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Alle 22:03, giovedì 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? 
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

In response to

pgsql-jdbc by date

Next:From: Dam AvalosDate: 2004-05-20 22:54:20
Subject: a big question
Previous:From: Dave CramerDate: 2004-05-20 20:03:33
Subject: Re: Queries with large ResultSets

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group