[COMMITTERS] pgsql: Allow planner to use expression-index stats for function calls i

2015-09-24 Thread Tom Lane
Allow planner to use expression-index stats for function calls in WHERE. Previously, a function call appearing at the top level of WHERE had a hard-wired selectivity estimate of 0.333, a kludge conveniently dated in the source code itself to July 1992. The expectation at the time was that som

[COMMITTERS] pgsql: Allow planner to use expression-index stats for function calls i

2015-09-24 Thread Tom Lane
Allow planner to use expression-index stats for function calls in WHERE. Previously, a function call appearing at the top level of WHERE had a hard-wired selectivity estimate of 0.333, a kludge conveniently dated in the source code itself to July 1992. The expectation at the time was that som