Clean up bugs in clause_selectivity() cleanup.
Tom Lane <tgl@sss.pgh.pa.us>
Clean up bugs in clause_selectivity() cleanup. Commit ac2b09508 was not terribly carefully reviewed. Band-aid it to not fail on non-RestrictInfo input, per report from Andreas Seltenreich. Also make it do something more reasonable with variable-free clauses, and improve nearby comments. Discussion: https://postgr.es/m/87inmf5rdx.fsf@credativ.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/clausesel.c | modified | +42 −39 |
Discussion
- [sqlsmith] Planner crash on foreign table join 22 messages · 2017-04-08 → 2017-04-10