>> "Josh Berkus" <josh@agliodbs.com> writes:
> "ERROR: Procedures cannot take more than 16 arguments."
> FWIW, I cannot find any such message string in current sources,
Sigh, I was certainly not firing on all cylinders last night.
That *is* the spelling of the message in 7.1 and before --- see
catalog/pg_proc.c. Are you certain that you recompiled with the new
setting of FUNC_MAX_ARGS? Unless you did configure --enable-depend,
config.h changes generally require "make clean" before "make all" to
ensure that the changes propagate.
regards, tom lane