From: Richard Huxton <dev@archonet.com>
To: Qiqi Dong <qdong@swbell.net>
To: pgsql-sql@postgresql.org
Subject: Re: Function to return recordset
Date: Mon, 26 Feb 2001 15:39:22 -0000
Message-ID: <003701c0a00a$4dca6200$1001a8c0@archonet.com> (raw)
References: <97d6tq$meh$1@news.tht.net>
<002e01c0a007$72e06e20$5a41a8c0@frontier>
From: "Qiqi Dong" <qdong@swbell.net>
> Hi,
>
> I need help! How can I get either sql or plpgsql function to return
> recordset?
>
> Thanks,
> Qiqi
If you have a table foo you can define your function with "returns foo" but
you cannot use this like:
select foo_function('x');
At present it is only useful for use by other functions (I believe). I think
Tom said this is on the developer todo list though, so sometime after 7.1 it
should be possible.
- 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 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: dev@archonet.com, qdong@swbell.net
Subject: Re: Function to return recordset
In-Reply-To: <003701c0a00a$4dca6200$1001a8c0@archonet.com>
References: <97d6tq$meh$1@news.tht.net> <002e01c0a007$72e06e20$5a41a8c0@frontier> <003701c0a00a$4dca6200$1001a8c0@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