• Tom Lane's avatar
    Fix performance bug in constant-expression simplifier. After finding · 1879175b
    Tom Lane authored
    that the inputs to a given operator can be recursively simplified to
    constants, it was evaluating the operator using the op's *original*
    (unsimplified) arg list, so that any subexpressions had to be evaluated
    again.  A constant subexpression at depth N got evaluated N times.
    Probably not very important in practical situations, but it made us look
    real slow in MySQL's 'crashme' test...
    1879175b
clauses.c 48.3 KB