| From: | mordicus <mordicus(at)free(dot)fr> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | RE: Re: Functions returning sets |
| Date: | 2001-05-20 07:32:33 |
| Message-ID: | 9e7s16$1csj$1@news.tht.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Why not like Interbase ?
when you define a procedure in Interbase, you a the 'suspend' instruction,
it suspend execution of the stored procedure and returns variables, then
come back to the procedure.
select * from myfunc('ba ba');
select mycol from myfunc('dada');
escuse my poor english :)
....
Mike Mascari wrote:
> I see Tom Lane implemented the SQL92 feature of using subselects in
> FROM clauses:
>
> CREATE TABLE foo (
> key integer not null,
> value text);
>
> SELECT * FROM (SELECT * FROM foo) AS bar
> WHERE bar.key = 1;
>
> Perhaps this is how functions returning sets should operate:
>
> SELECT titles.* FROM titles, (SELECT funct_set('blah blah')) AS bar
> WHERE titles.title = bar.title;
>
> FWIW,
>
> Mike Mascari
> mascarm(at)mascari(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hannu Krosing | 2001-05-20 07:34:31 | Re: Re: Functions returning sets |
| Previous Message | Vadim Mikheev | 2001-05-20 06:36:34 | Re: Plans for solving the VACUUM problem |