Make use of statistics on index expressions. There are still some
Tom Lane <tgl@sss.pgh.pa.us>
Make use of statistics on index expressions. There are still some corner cases that could stand improvement, but it does all the basic stuff. A byproduct is that the selectivity routines are no longer constrained to working on simple Vars; we might in future be able to improve the behavior for subexpressions that don't match indexes.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/costsize.c | modified | +3 −178 |
| src/backend/optimizer/util/relnode.c | modified | +2 −6 |
| src/backend/utils/adt/selfuncs.c | modified | +1051 −793 |
| src/include/optimizer/pathnode.h | modified | +2 −1 |
| src/include/utils/selfuncs.h | modified | +4 −1 |