We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf117555 commit5936d25Copy full SHA for 5936d25
src/backend/utils/adt/selfuncs.c
@@ -336,13 +336,10 @@ var_eq_const(VariableStatData *vardata, Oid operator,
336
statistic_proc_security_check(vardata,
337
(opfuncoid=get_opcode(operator))))
338
{
339
-Form_pg_statisticstats;
340
AttStatsSlotsslot;
341
boolmatch= false;
342
inti;
343
344
-stats= (Form_pg_statistic)GETSTRUCT(vardata->statsTuple);
345
-
346
/*
347
* Is the constant "=" to any of the column's most common values?
348
* (Although the given operator may not really be "=", we will assume
@@ -480,12 +477,9 @@ var_eq_non_const(VariableStatData *vardata, Oid operator,
480
477
}
481
478
elseif (HeapTupleIsValid(vardata->statsTuple))
482
479
483
484
doublendistinct;
485
486
487
488
489
490
* Search is for a value that we do not know a priori, but we will
491
* assume it is not NULL. Estimate the selectivity as non-null