Document that get_attstatsslot/free_attstatsslot only need to be passed
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Oct 2005 17:27:14 +0000 (17:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Oct 2005 17:27:14 +0000 (17:27 +0000)
commita70ae476031940c5a6838e5fc51f6f77d4a32972
treee03c95d14d4a9a92541b2b258a555eda7797cb2f
parenteb46010da80f936282a4b7ce6f73f7eb95933264
Document that get_attstatsslot/free_attstatsslot only need to be passed
valid type information if they are asked to fetch the values part of a
pg_statistic slot; these arguments are unneeded if fetching only the
numbers part.  Use this to save a catcache lookup in btcostestimate,
which is looking like a bit of a hotspot in recent profiling.  Not a
big savings, but since it's essentially free, might as well do it.
src/backend/utils/adt/selfuncs.c
src/backend/utils/cache/lsyscache.c