Change get_variable_numdistinct's API to flag default estimates explicitly.
Tom 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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/selfuncs.c | modified | +43 −27 |
| src/include/utils/selfuncs.h | modified | +2 −1 |