Provide moving-aggregate support for a bunch of numerical aggregates.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9d229f399e87d2ae7132c2e8feef317ce1479728
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-04-13T00:33:09Z
Releases: 9.4.0
Provide moving-aggregate support for a bunch of numerical aggregates.

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

Files