Fix oversight in 8.0 modification of RestrictInfo data structures.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 07e6f93d6b41aaacaf5d2bf758f52ef37f0a6e5b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-10-11T16:44:40Z
Releases: 8.1.0
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.

Files

PathChange+/−
src/backend/optimizer/path/clausesel.c modified +10 −3