]> granicus.if.org Git - postgresql/commit
Clean up bugs in clause_selectivity() cleanup.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 8 Apr 2017 20:38:03 +0000 (16:38 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 8 Apr 2017 20:38:03 +0000 (16:38 -0400)
commiteef8c0069e4d5eea2e52965ce3eb018b5a594fd6
tree40cce5b0301d08b8c45dc5956fa790c69e252d5b
parentaba696d1af9a267eee85d69845c3cdeccf788525
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
src/backend/optimizer/path/clausesel.c