• Tom Lane's avatar
    Rethink the order of expression preprocessing: eval_const_expressions · 5db2e838
    Tom Lane authored
    really ought to run before canonicalize_qual, because it can now produce
    forms that canonicalize_qual knows how to improve (eg, NOT clauses).
    Also, because eval_const_expressions already knows about flattening
    nested ANDs and ORs into N-argument form, the initial flatten_andors
    pass in canonicalize_qual is now completely redundant and can be
    removed.  This doesn't save a whole lot of code, but the time and
    palloc traffic eliminated is a useful gain on large expression trees.
    5db2e838
clauses.c 101 KB