nconway@klamath.dyndns.org (Neil Conway) writes:
> There's no problem with wrapping a view over the table function -- but
> IMHO using 5 different functions when one would suffice is just ugly.
Right. The way the pg_stats functions are implemented is actually
pretty ugly; it was forced by the lack of support for functions
returning tuples in 7.2, but I'm not sure why we'd want to copy it now.
I do agree with providing a view wrapper over the function, for the
reasons Rod mentioned.
regards, tom lane