Change get_variable_numdistinct's API to flag default estimates explicitly.

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

Commit: 4c2777d0b733220d9029f78817af8ce671e4a5ad
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-09-04T19:41:49Z
Releases: 9.2.0
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.

Files

PathChange+/−
src/backend/utils/adt/selfuncs.c modified +43 −27
src/include/utils/selfuncs.h modified +2 −1