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

Alle 20:44, giovedì 20 maggio 2004, Tom Lane ha scritto:
> Andrea Aime <andrea.aime@aliceposta.it> writes:
> > Ugh... those limitation are really frightening, this means we cannot
> > fetch big quantities of data outside of a transaction...
>
> You were expecting something different?  Postgres does not do *anything*
> outside of a transaction.

Every other database I have some experience on (sql server, sapdb) allows you
to use cursors regardless of the transaction. If you are working with a 
database in autocommit mode that doesn't mean that you don't need to load
huge quantities of data... on the contrary, I would expect that it would be 
more costly to load the huge amount of data inside of a transaction because
of transaction isolation.
Anyway, that's not the matter, the real problem is that our generic jdbc code 
won't work properly with postgres because of this "feature" thus we will have 
to subclass everything that deals with the database in order to get the 
correct behaviour.

If I am in autocommit = false mode, I will have to call connection.commit()
after every write command to the database... isolation wise, to simulate a
true autocommit, will I have to call connection.commit() also after reads if
I raise the isolation level above READ_COMMITED?

Best regards
Andrea Aime




view thread (13+ messages)  latest in thread

Message-ID: <200405202127.11956.andrea.aime@aliceposta.it>
Permalink:  ../200405202127.11956.andrea.aime@aliceposta.it/
Also on:    postgresql.org/message-id/200405202127.11956.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, tgl@sss.pgh.pa.us, books@ejurka.com, jao@geophile.com
  Subject: Re: Queries with large ResultSets
  In-Reply-To: <200405202127.11956.andrea.aime@aliceposta.it>
  References: <40ABD19C.8080109@geophile.com> <200405202022.37646.andrea.aime@aliceposta.it> <3723.1085078664@sss.pgh.pa.us> <200405202127.11956.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