pgsql: Document that get_attstatsslot/free_attstatsslot only need to be

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Document that get_attstatsslot/free_attstatsslot only need to be
Date: 2005-10-11 17:27:14
Message-ID: 20051011172714.DD00FD6F2D@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
selfuncs.c (r1.189 -> r1.190)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/selfuncs.c.diff?r1=1.189&r2=1.190)
pgsql/src/backend/utils/cache:
lsyscache.c (r1.127 -> r1.128)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/cache/lsyscache.c.diff?r1=1.127&r2=1.128)

Browse pgsql-committers by date

  From Date Subject
Next Message User Aglio 2005-10-11 19:44:22 press - pr: New Directory
Previous Message Tom Lane 2005-10-11 16:45:01 pgsql: Fix oversight in 8.0 modification of RestrictInfo data