RE: Re: Functions returning sets - Mailing list pgsql-hackers

From mordicus
Subject RE: Re: Functions returning sets
Date
Msg-id 9e7ss3$1d1c$2@news.tht.net
Whole thread Raw
In response to RE: Re: Functions returning sets  (Mike Mascari <mascarm@mascari.com>)
List pgsql-hackers
Why not like Interbase ?

when you define a procedure in Interbase, you have 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@mascari.com



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Grammar-problems with pl/pgsql in gram.y
Next
From: "Gabor Csuri"
Date:
Subject: I don't understand...