From: Josh Berkus <josh@agliodbs.com>
To: John Taves <jtaves@pickatime.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Can a function return a record set?
Date: Fri, 23 Feb 2001 07:34:42 -0800
Message-ID: <web-1194176@davinci.ethosmedia.com> (raw)
In-Reply-To: <3a8f7b37_1@news.nwlink.com>
Mr. Taves,
> Am I correct in concluding that I can't return a record
> set from a function?
>
> For example, in MS SQL I would do:
>
> create procedure foo as
> select * from yada
>
> I expected to be able to do the following in postgresql.
>
> create function foo (integer) returns (integer) as '
> begin
> select * from yada;
> end; '
> language 'plpgsql';
>
> I am concluding that I can't.
You are correct. Stored procedures that return rowsets are
in the "wish list" for 7.2 or 8.0 ... but not in the current
development version. Please browse the archives (about 1-2
months ago) for my suggested workaround for the time being.
-Josh Berkus
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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: josh@agliodbs.com, jtaves@pickatime.com
Subject: Re: Can a function return a record set?
In-Reply-To: <web-1194176@davinci.ethosmedia.com>
References: <3a8f7b37_1@news.nwlink.com> <web-1194176@davinci.ethosmedia.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