Add a "provariadic" column to pg_proc to eliminate the remarkably expensive

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6563e9e2e8b15350e4cb99b86f2f7dec54722155
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-07-16T16:55:24Z
Releases: 8.4.0
Add a "provariadic" column to pg_proc to eliminate the remarkably expensive
need to deconstruct proargmodes for each pg_proc entry inspected by
FuncnameGetCandidates().  Fixes function lookup performance regression
caused by yesterday's variadic-functions patch.

In passing, make pg_proc.probin be NULL, rather than a dummy value '-',
in cases where it is not actually used for the particular type of function.
This should buy back some of the space cost of the extra column.

Files