Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it> writes:
> I thought I could write something like
> create or replace testA(out setof record) as...
> but it seems I can't.
No, you can't. Write
create or replace testA() returns setof record as...
instead. "setof" is only allowed in the RETURNS clause --- else we'd
have to figure out what it means to attach "setof" to some OUT
parameters and not others.
regards, tom lane