"Josh Berkus" <josh@agliodbs.com> writes:
> As a test, I tried building a function with 20 parameters in Template1.
> I got:
> "ERROR: Procedures cannot take more than 16 arguments."
Get out your debugger and find where that's coming from. We might have
missed someplace that should be using the FUNC_MAX_ARGS symbol instead
of a hardwired constant (though I thought we'd fixed them all the last
time round...)
regards, tom lane