pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrea Aime <andrea.aime@aliceposta.it>
To: pg@fastcrypt.com
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kris Jurka <books@ejurka.com>
Cc: Jack Orenstein <jao@geophile.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Queries with large ResultSets
Date: Thu, 20 May 2004 22:56:41 +0200
Message-ID: <200405202256.41349.andrea.aime@aliceposta.it> (raw)
In-Reply-To: <1085083413.1585.3.camel@localhost.localdomain>
References: <40ABD19C.8080109@geophile.com>
	<200405202127.11956.andrea.aime@aliceposta.it>
	<1085083413.1585.3.camel@localhost.localdomain>

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



view thread (13+ messages)  latest in thread

Message-ID: <200405202256.41349.andrea.aime@aliceposta.it>
Permalink:  ../200405202256.41349.andrea.aime@aliceposta.it/
Also on:    postgresql.org/message-id/200405202256.41349.andrea.aime@aliceposta.it

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: andrea.aime@aliceposta.it, pg@fastcrypt.com, tgl@sss.pgh.pa.us, books@ejurka.com, jao@geophile.com
  Subject: Re: Queries with large ResultSets
  In-Reply-To: <200405202256.41349.andrea.aime@aliceposta.it>
  References: <40ABD19C.8080109@geophile.com> <200405202127.11956.andrea.aime@aliceposta.it> <1085083413.1585.3.camel@localhost.localdomain> <200405202256.41349.andrea.aime@aliceposta.it>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox