• Tom Lane's avatar
    Preserve AND/OR flatness while extracting restriction OR clauses. · 1b4cc493
    Tom Lane authored
    The code I added in commit f343a880 was
    careless about preserving AND/OR flatness: it could create a structure with
    an OR node directly underneath another one.  That breaks an assumption
    that's fairly important for planning efficiency, not to mention triggering
    various Asserts (as reported by Benjamin Smith).  Add a trifle more logic
    to handle the case properly.
    1b4cc493
join.out 146 KB