• Tom Lane's avatar
    Fix oversight in 8.0 modification of RestrictInfo data structures. · 07e6f93d
    Tom Lane authored
    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.
    07e6f93d
clausesel.c 18.2 KB