pgsql: Change get_variable_numdistinct's API to flag default estimates

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Change get_variable_numdistinct's API to flag default estimates
Date: 2011-09-04 19:42:05
Message-ID: E1R0IZx-0001Qm-Qs@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Change get_variable_numdistinct's API to flag default estimates explicitly.

Formerly, callers tested for DEFAULT_NUM_DISTINCT, which had the problem
that a perfectly solid estimate might be mistaken for a content-free
default.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4c2777d0b733220d9029f78817af8ce671e4a5ad

Modified Files
--------------
src/backend/utils/adt/selfuncs.c | 70 +++++++++++++++++++++++--------------
src/include/utils/selfuncs.h | 3 +-
2 files changed, 45 insertions(+), 28 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-09-04 23:10:17 pgsql: Fix #include problems in 9.1 branch.
Previous Message Tom Lane 2011-09-04 07:29:00 Re: Re: [COMMITTERS] pgsql: Remove "fmgr.h" include in cube contrib --- caused crash on a Ge