pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radim Kolar <hsn@filez.com>
Cc: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: not fetching all query results
Date: Sun, 22 Jul 2012 16:55:51 +0200
Message-ID: <500C1477.8010901@filez.com> (raw)
In-Reply-To: <5008F022.40503@ejurka.com>
References: <50044D96.3050902@filez.com>
	<5004D8F2.509@ringerc.id.au>
	<50055065.6080308@filez.com>
	<CADK3HH+UboShbu12+V3N21wtXoEW4vYPHydWVcn47n01i2jjug@mail.gmail.com>
	<500585D1.1000801@filez.com>
	<CADK3HHLx74z3c=YNvRYBsxErfVyifchzEcuwXgpgN4C_YAhtQQ@mail.gmail.com>
	<5005AB7C.5010508@filez.com>
	<CADK3HH+03Z3jik+G5XTpT9C0H3JzOgomYHL1fTNVi-ZJFdtRwQ@mail.gmail.com>
	<CADK3HH+HEot-uX0Vd23dN0nQW8Nrp2+E6gTFVN9TvLWHW7-cLw@mail.gmail.com>
	<5005C1AC.1030106@filez.com>
	<CADK3HHLOhLMBcMymZQAkWKubfvQKpkcZpaePH9yQJq-V0Ksucg@mail.gmail.com>
	<5005D257.9000100@filez.com>
	<5008E9AC.8030507@ringerc.id.au>
	<5008F022.40503@ejurka.com>


> A transaction is required to keep the portal (protocol level cursor) 
> open.  In autocommit mode, each batch fetched runs in its own 
> transaction.  So after the first batch is fetched, the autocommit 
> transaction ends and the cursor is destroyed.  So the next batch fetch 
> cannot work.
what about to create transaction for each Statement in autocommit mode. 
after calling statement.close() close automatically created transaction.



view thread (27+ messages)  latest in thread

Message-ID: <500C1477.8010901@filez.com>
Permalink:  ../500C1477.8010901@filez.com/
Also on:    postgresql.org/message-id/500C1477.8010901@filez.com

 · 

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: hsn@filez.com
  Subject: Re: not fetching all query results
  In-Reply-To: <500C1477.8010901@filez.com>
  References: <50044D96.3050902@filez.com> <5004D8F2.509@ringerc.id.au> <50055065.6080308@filez.com> <CADK3HH+UboShbu12+V3N21wtXoEW4vYPHydWVcn47n01i2jjug@mail.gmail.com> <500585D1.1000801@filez.com> <CADK3HHLx74z3c=YNvRYBsxErfVyifchzEcuwXgpgN4C_YAhtQQ@mail.gmail.com> <5005AB7C.5010508@filez.com> <CADK3HH+03Z3jik+G5XTpT9C0H3JzOgomYHL1fTNVi-ZJFdtRwQ@mail.gmail.com> <CADK3HH+HEot-uX0Vd23dN0nQW8Nrp2+E6gTFVN9TvLWHW7-cLw@mail.gmail.com> <5005C1AC.1030106@filez.com> <CADK3HHLOhLMBcMymZQAkWKubfvQKpkcZpaePH9yQJq-V0Ksucg@mail.gmail.com> <5005D257.9000100@filez.com> <5008E9AC.8030507@ringerc.id.au> <5008F022.40503@ejurka.com> <500C1477.8010901@filez.com>

* 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