Change get_variable_numdistinct's API to flag default estimates explicitly.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Sep 2011 19:41:49 +0000 (15:41 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Sep 2011 19:41:49 +0000 (15:41 -0400)
commit4c2777d0b733220d9029f78817af8ce671e4a5ad
treeed2001e3d7e99d05a77fbf1dac278a21fad853e4
parent1cb108efb0e60d87e4adec38e7636b6e8efbeb57
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.
src/backend/utils/adt/selfuncs.c
src/include/utils/selfuncs.h