From: Dmitry Tkach <dmitry@openratings.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dave@micro-automation.net, "pgsql-jdbc@postgresql.org" <pgsql-jdbc@postgresql.org>
Cc: bechtel@ipcon.de
Subject: Re: setFetchSize()
Date: Fri, 18 Jul 2003 11:21:11 -0400
Message-ID: <3F181067.6000606@openratings.com> (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>
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.
>
>
Aha! That seems to explain those memory problems the other guy (Patric,
I think) was complaining about earlier...
Dima
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: dmitry@openratings.com, tgl@sss.pgh.pa.us, bechtel@ipcon.de
Subject: Re: setFetchSize()
In-Reply-To: <3F181067.6000606@openratings.com>
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> <3F181067.6000606@openratings.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