From: Craig Ringer <craig@2ndquadrant.com>
To: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Disk buffering of resultsets
Date: Sun, 21 Sep 2014 15:24:06 +0800
Message-ID: <541E7D16.8040405@2ndquadrant.com> (raw)
In-Reply-To: <lvlte4$jn$1@ger.gmane.org>
References: <ADD972C51196844491C410BCD4146DCD60A99AA819@dnaexc01.diennea.lan>
<lvlte4$jn$1@ger.gmane.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
On 09/21/2014 03:06 PM, Thomas Kellerer wrote:
> Wouldn't it make more sense to allow for a non-buffered result when
> using auto-commit
> (something like "bufferResults=false") instead?
>
> Or is that technically not possible due to the Postgres wire-protocol?
If you expect the statement to have committed when the execute returns,
then it's not practical.
You could use a WITH HOLD cursor, but that'd be horribly inefficient; it
basically forces the server to buffer the result instead.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: craig@2ndquadrant.com, spam_eater@gmx.net
Subject: Re: Disk buffering of resultsets
In-Reply-To: <541E7D16.8040405@2ndquadrant.com>
References: <ADD972C51196844491C410BCD4146DCD60A99AA819@dnaexc01.diennea.lan> <lvlte4$jn$1@ger.gmane.org> <541E7D16.8040405@2ndquadrant.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