I was looking at the code. Why do you calculate "sumX2" in float8_accum?
Later you have a comment "ignore sumX2" in float8_avg().
Regards,
Jeff
On Friday 26 April 2002 11:30 am, Tom Lane wrote:
> Andrew Gould <andrewgould(at)yahoo(dot)com> writes:
> > Once I untar PostgreSQL's source, where can I find the
> > code for avg()? Will it have it's own file?
>
> The C code is in src/backend/utils/adt/float.c --- look at
> float8_accum() and float8_avg().
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster