From: Dennis <pg-user@calico-consulting.com>
To: postgres SQL <pgsql-sql@postgresql.org>
Subject: Re: cursors and for loops?
Date: Sun, 11 Apr 2004 14:46:01 -0400
Message-ID: <courier.40799269.00004AC6@wolverine.lercnetworks.com> (raw)
In-Reply-To: <15008.1081699255@sss.pgh.pa.us>
References: <courier.4078D0C7.00000C8F@wolverine.lercnetworks.com>
<15008.1081699255@sss.pgh.pa.us>
Tom Lane writes:
> Something like
>
> LOOP
> FETCH ...;
> EXIT WHEN NOT found;
> ...
> END LOOP;
Thank you! I tried finding documentation on "found" in this context and
didn't come up with anything. Can you point me to where it is documented?
Also, I am not getting the results I think I should be getting. Is there any
kind of debug setting, or if not that, a way to output text (i.e. printf)
from plpgsql?
Thanks,
Dennis
pg-user@calico-consulting.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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pg-user@calico-consulting.com
Subject: Re: cursors and for loops?
In-Reply-To: <courier.40799269.00004AC6@wolverine.lercnetworks.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