Fix oversight in 8.0 modification of RestrictInfo data structures.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Oct 2005 16:44:40 +0000 (16:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Oct 2005 16:44:40 +0000 (16:44 +0000)
commit07e6f93d6b41aaacaf5d2bf758f52ef37f0a6e5b
tree43fea4db70ebe7ca6e84bac3bf674c60268d41bd
parentc6b9924bec6f621f9bbceb38d7839a83c148c6ce
Fix oversight in 8.0 modification of RestrictInfo data structures.
A RestrictInfo representing an OR clause now contains two versions of
the contained expression, one with sub-RestrictInfos and one without.
clause_selectivity() should descend to the version with sub-RestrictInfos
so that it has a chance of caching its results for the OR's sub-clauses.
Failing to do so resulted in redundant planner effort.
src/backend/optimizer/path/clausesel.c