From: Ian Lance Taylor <ian@airs.com>
To: Najm Hashmi <najm@mondo-live.com>
Cc: pgsql <pgsql-sql@postgresql.org>
Subject: Re: pgsql and cursor
Date: 09 Feb 2001 13:17:34 -0800
Message-ID: <si8znfh7yp.fsf@daffy.airs.com> (raw)
References: <3A8566CF.AE8414C0@mondo-live.com>
Najm Hashmi <najm@mondo-live.com> writes:
> Hi all, I am not sure If it is allowed to use cursor inside pgsql functions.
> If it is possible, please someone could send exact synatx how it is used. If
> it is not allowed is there a way arround it? I need to do some calculations
> and then return this value as text.
Cursors are not supported in PL/pgSQL. (You can, however, use FOR to
loop over a query).
For a patch to add cursor support to PL/pgSQL, see
http://www.airs.com/ian/pgsql-cursor.html
Ian
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: ian@airs.com, najm@mondo-live.com
Subject: Re: pgsql and cursor
In-Reply-To: <si8znfh7yp.fsf@daffy.airs.com>
References: <3A8566CF.AE8414C0@mondo-live.com> <si8znfh7yp.fsf@daffy.airs.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