2011/12/5 Tom Lane <tgl@sss.pgh.pa.us>:
> Pavel Stehule <pavel.stehule@gmail.com> writes:
>> return next in function that returns composite type needs a composite
>> variable. Other cases are not supported there.
>
> Plain "return" has the same limitation, but this really ought to be
> fixed sometime. Composite types have been getting closer and closer
> to first-class status since plpgsql was written.
I sent this patch a few years ago - it was support for RETURN NEXT ROW(...)
but probably there was some issue
Regards
Pavel
>
> regards, tom lane