• Tom Lane's avatar
    Adjust subquery qual pushdown rules to be more forgiving: if a qual · 05f916e6
    Tom Lane authored
    refers to a non-DISTINCT output column of a DISTINCT ON subquery, or
    if it refers to a function-returning-set, we cannot push it down.
    But the old implementation refused to push down *any* quals if the
    subquery had any such 'dangerous' outputs.  Now we just look at the
    output columns actually referenced by each qual expression.  More code
    than before, but probably no slower since we don't make unnecessary checks.
    05f916e6
allpaths.c 25.3 KB