• Tom Lane's avatar
    Provide moving-aggregate support for a bunch of numerical aggregates. · 9d229f39
    Tom Lane authored
    First installment of the promised moving-aggregate support in built-in
    aggregates: count(), sum(), avg(), stddev() and variance() for
    assorted datatypes, though not for float4/float8.
    
    In passing, remove a 2001-vintage kluge in interval_accum(): interval
    array elements have been properly aligned since around 2003, but
    nobody remembered to take out this workaround.  Also, fix a thinko
    in the opr_sanity tests for moving-aggregate catalog entries.
    
    David Rowley and Florian Pflug, reviewed by Dean Rasheed
    9d229f39
builtins.h 50.4 KB