From: Jan Wieck <janwieck@yahoo.com>
To: Bo Lorentsen <bl@netgroup.dk>
Cc: Jan Wieck <janwieck@yahoo.com>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Large data sets and FOR LOOP's
Date: Thu, 14 Mar 2002 10:21:30 -0500 (EST)
Message-ID: <200203141521.g2EFLUg02750@saturn.janwieck.net> (raw)
In-Reply-To: <1016092672.878.14.camel@netgroup>
Bo Lorentsen wrote:
> On Wed, 2002-03-13 at 17:29, Jan Wieck wrote:
>
> > You probably want to upgrade to 7.2, because 7.2's PL/pgSQL
> > uses the newly available SPI cursors silently in FOR loops.
> This sounds good, I like to upgrade anyway, also to take advantage of
> the new vaccum.
>
> > Releases before 7.2 loaded the entire result set into memory
> > (ahem, swap space) before entering the FOR loop.
> This was what I guested, too :-)
>
> Would a cursor have helped any ?
Sure, if they whould've been available in PL/pgSQL. This all
was a combined feature enhancement for 7.2. 1st cursor
support over SPI (an internal query interface inside the
backend), 2nd support for cursors and reference cursors in
PL/pgSQL, 3rd automatic usage of internal cursors in FOR
loops.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
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-sql@postgresql.org
Cc: janwieck@yahoo.com, bl@netgroup.dk
Subject: Re: Large data sets and FOR LOOP's
In-Reply-To: <200203141521.g2EFLUg02750@saturn.janwieck.net>
References: <1016092672.878.14.camel@netgroup> <200203141521.g2EFLUg02750@saturn.janwieck.net>
* 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