Jeff Davis <list-pgsql-general(at)empires(dot)org> writes:> I was looking at the code. Why do you calculate "sumX2" in float8_accum?
Because the same accumulator function is also used for stddev.
regards, tom lane