Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> ERROR: RETURN must specify a record or row variable in function returning row
> Off the top of my head, I can't think of any reason for this
> restriction, nor can I find any code comments or anything in the
> commit log which explains the reason for it. Does anyone know why we
> don't allow this?
Laziness, probably. Feel free to have at it.
regards, tom lane