"Jonathan M. Gardner" <jgardner(at)jonathangardner(dot)net> writes:
> except if you look at parse_analyze_varparams it seems that it *ignores*
> the numParams and paramTypes passed in. (I could be reading this wrong,
> so correct me.)
You're reading it wrong. That array is both an input and an output parameter.
regards, tom lane