]> granicus.if.org Git - postgresql/commit
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)
commit0cc0d0822ddf8e76ed3b7d16ad500762b2ed43dd
tree77705c6620adbec650660defb4ad56eb65ceeb47
parent07e6f93d6b41aaacaf5d2bf758f52ef37f0a6e5b
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