• Tom Lane's avatar
    Fix another join removal bug: the check on PlaceHolderVars was wrong. · c8c03d72
    Tom Lane authored
    The previous coding would decide that join removal was unsafe upon finding
    a PlaceHolderVar that needed to be evaluated at the inner rel and then used
    above the join.  However, this fails to cover the case of PlaceHolderVars
    that refer to both the inner rel and some other rels.  Per bug report from
    Andrus.
    c8c03d72
join.out 78.2 KB