Fix oversight in 8.0 modification of RestrictInfo data structures.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Oct 2005 16:45:00 +0000 (16:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Oct 2005 16:45:00 +0000 (16:45 +0000)
commit55a1160fd8f7831b08d9deb181bf378d4366fe5e
tree96f7322e3c7fe17f2e19b489eaf7617b97cf90bc
parent97f416c3112a1adb9bd67173bd2055cfc31c0027
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