Document that get_attstatsslot/free_attstatsslot only need to be passed

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

Commit: 0cc0d0822ddf8e76ed3b7d16ad500762b2ed43dd
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-10-11T17:27:14Z
Releases: 8.1.0
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.

Files

PathChange+/−
src/backend/utils/adt/selfuncs.c modified +3 −8
src/backend/utils/cache/lsyscache.c modified +9 −3