From: Dave Cramer <Dave@micro-automation.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: setFetchSize()
Date: 18 Jul 2003 08:37:30 -0400
Message-ID: <1058531850.1574.26.camel@localhost.localdomain> (raw)
In-Reply-To: <16969.1058496860@sss.pgh.pa.us>
References: <3F16D2C9.3010808@sysd.com>
<3F16D677.3010300@openratings.com>
<20030717140110.52ca5fe2.felipes@ritterdosreis.br>
<3F16D9DF.6050900@openratings.com>
<20030717141903.2cf411e2.felipes@ritterdosreis.br>
<3F16DC24.5020509@openratings.com>
<1058476359.1574.3.camel@localhost.localdomain>
<16969.1058496860@sss.pgh.pa.us>
I stand corrected.
Dave
On Thu, 2003-07-17 at 22:54, Tom Lane wrote:
> Dave Cramer <Dave@micro-automation.net> writes:
> > This isn't true any more, the backend supports with hold now, so you can
> > declare a cursor outside a transaction
>
> However, if the problem is that the query result is too large to hold in
> memory, then a WITH HOLD cursor is a terrible solution. You are simply
> moving the problem of coping with the fully-materialized query result
> out of the client and into the backend. Admittedly the backend is
> probably better able to cope than the client (at least it knows how to
> spill rows to disk...), but if you are trying to get good performance
> on huge result sets you do not want to use a held cursor, any more than
> you want to suck the whole result into client memory.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
--
Dave Cramer <Dave@micro-automation.net>
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: Dave@micro-automation.net, tgl@sss.pgh.pa.us
Subject: Re: setFetchSize()
In-Reply-To: <1058531850.1574.26.camel@localhost.localdomain>
References: <3F16D2C9.3010808@sysd.com> <3F16D677.3010300@openratings.com> <20030717140110.52ca5fe2.felipes@ritterdosreis.br> <3F16D9DF.6050900@openratings.com> <20030717141903.2cf411e2.felipes@ritterdosreis.br> <3F16DC24.5020509@openratings.com> <1058476359.1574.3.camel@localhost.localdomain> <16969.1058496860@sss.pgh.pa.us> <1058531850.1574.26.camel@localhost.localdomain>
* 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