From: Richard Huxton <dev@archonet.com>
To: Ivan Babikov <iab@qms.e-burg.ru>
To: pgsql-sql@postgresql.org
Subject: Re: How to return more than one variable from PgPlSQL procedure?
Date: Fri, 22 Mar 2002 16:15:06 +0000
Message-ID: <20020322161520.2A95113E6F@mainbox.archonet.com> (raw)
In-Reply-To: <a7f882$18v8$1@jupiter.hub.org>
References: <a7f882$18v8$1@jupiter.hub.org>
On Friday 22 Mar 2002 12:34, Ivan Babikov wrote:
> Hello all,
>
> I've noticed that postgres functions can return SETOF but it seems that
> SETOF works only for sql-language functions. At least the code below is
> compilable but causes freezing of pgAdmin during the execution. This
> function was converted to PgPlSql from Interbase:
Your assessment is correct, plpgsql cannot cope with SETOF at the moment.
Version 7.2 allows you to return a cursor though (see the docs).
- Richard Huxton
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: dev@archonet.com, iab@qms.e-burg.ru
Subject: Re: How to return more than one variable from PgPlSQL procedure?
In-Reply-To: <20020322161520.2A95113E6F@mainbox.archonet.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