• Tom Lane's avatar
    Fix oversight in check_ungrouped_columns optimization that avoids · 31a0f1d3
    Tom Lane authored
    unnecessary checks for complex grouping expressions: we cannot check
    whether the expressions are simple Vars until after we apply
    flatten_join_alias_vars, because in the case of FULL JOIN that routine
    can introduce non-Var expressions.  Per example from Joel Knight.
    31a0f1d3
parse_agg.c 12.5 KB