• Tom Lane's avatar
    Further thought shows that has_distinct_on_clause() needs to take much · 0889bd00
    Tom Lane authored
    more care with resjunk tlist entries than it was doing.  The original
    coding ignored resjunk entries entirely, but a resjunk entry that is
    in either the distinctClause or sortClause lists indicates that DISTINCT
    ON was used.  It's important for ruleutils.c to get this right, else we
    may dump views using DISTINCT ON incorrectly.
    0889bd00
clauses.c 60.9 KB