pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedFunction to return recordset
3+ messages / 2 participants
[nested] [flat]
* Function to return recordset
@ 2001-02-26 15:19 Qiqi Dong <qdong@swbell.net>
0 siblings, 1 reply; 3+ messages in thread
From: Qiqi Dong @ 2001-02-26 15:19 UTC (permalink / raw)
To: pgsql-sql
Hi,
I need help! How can I get either sql or plpgsql function to return
recordset?
Thanks,
Qiqi
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Function to return recordset
@ 2001-02-26 15:39 Richard Huxton <dev@archonet.com>
parent: Qiqi Dong <qdong@swbell.net>
0 siblings, 1 reply; 3+ messages in thread
From: Richard Huxton @ 2001-02-26 15:39 UTC (permalink / raw)
To: Qiqi Dong <qdong@swbell.net>; pgsql-sql
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Function to return recordset
@ 2001-02-26 17:18 Qiqi Dong <qdong@swbell.net>
parent: Richard Huxton <dev@archonet.com>
0 siblings, 0 replies; 3+ messages in thread
From: Qiqi Dong @ 2001-02-26 17:18 UTC (permalink / raw)
To: pgsql-sql
It would be nice to have this feature in next release. I cannot port my
applications to PostgreSQL without it. All my data objects depend on
recordset returned from stored procedures. Could someone consider it for
7.1? Thanks.
----- Original Message -----
From: "Richard Huxton" <dev@archonet.com>
To: "Qiqi Dong" <qdong@swbell.net>; <pgsql-sql@postgresql.org>
Sent: Monday, February 26, 2001 9:39 AM
Subject: Re: [SQL] Function to return recordset
> 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
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-02-26 17:18 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-26 15:19 Function to return recordset Qiqi Dong <qdong@swbell.net>
2001-02-26 15:39 ` Richard Huxton <dev@archonet.com>
2001-02-26 17:18 ` Qiqi Dong <qdong@swbell.net>
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