Pavel Stehule <pavel.stehule@gmail.com> writes:
> I think, so RETURNS TABLE can be modified for returning typmode
> without significant problems - this function is called in table
> context and I don't see any problematic use case.
RETURNS TABLE is just a shorthand for some OUT parameters. I don't
believe it's either easy or a good idea to make it work differently
from every other function-argument-or-result case.
regards, tom lane