Igor Roboul <igor(at)raduga(dot)dyndns(dot)org> writes:
> Is it possible write stored procedure (sorry, function) which will
> return tuples one by one. Like:
> select * from my_func(1,2,3);
Doesn't work at the moment, but there's been talk of making it work
for 7.2. See my much longer post about functions returning tuples,
a few days back (either here or in pgsql-sql, I forget...). The
executive summary: it's kind of a mess at the moment.
regards, tom lane