Generalize mcv_selectivity() to support both VAR OP CONST and CONST OP VAR

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

Commit: 0f0a33099cf99e292c832efc60cf07fc8170bc5f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-04-27T17:52:40Z
Releases: 8.2.0
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.

Files

PathChange+/−
src/backend/utils/adt/selfuncs.c modified +14 −14
src/include/utils/selfuncs.h modified +3 −2