pgsql: Change get_variable_numdistinct's API to flag default estimates

Started by Tom Lanealmost 15 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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(-)