OSDN Git Service

Generalize mcv_selectivity() to support both VAR OP CONST and CONST OP VAR
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Apr 2006 17:52:40 +0000 (17:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Apr 2006 17:52:40 +0000 (17:52 +0000)
commit0f0a33099cf99e292c832efc60cf07fc8170bc5f
tree6f59dfa841fa8ce7b45dbdb21e8cc2238b466a17
parentafab814a18f5eb75a3f63381fc38e08295be4f76
Generalize mcv_selectivity() to support both VAR OP CONST and CONST OP VAR
cases.  This was not needed in the existing uses within selfuncs.c, but if
we're gonna export it for general use, the extra generality seems helpful.
Motivated by looking at ltree example.
src/backend/utils/adt/selfuncs.c
src/include/utils/selfuncs.h