Re: requesting features in PostgreSQL - Mailing list pgsql-general

From Jeff Davis
Subject Re: requesting features in PostgreSQL
Date
Msg-id 200204271859.LAA04297@smtp.ucsd.edu
Whole thread Raw
In response to Re: requesting features in PostgreSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: requesting features in PostgreSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
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@yahoo.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

pgsql-general by date:

Previous
From: Jeff Davis
Date:
Subject: Re: requesting features in PostgreSQL
Next
From: Randall Perry
Date:
Subject: Date/time value 'current' no longer available