Re: trying to summarize into a new table by time... - Mailing list pgsql-sql

From Tom Lane
Subject Re: trying to summarize into a new table by time...
Date
Msg-id 11883.991493939@sss.pgh.pa.us
Whole thread Raw
In response to Re: trying to summarize into a new table by time...  (Larry Rosenman <ler@lerctr.org>)
Responses Re: trying to summarize into a new table by time...
List pgsql-sql
> One more question, will the sum() on a bigint column cast to float
> happen in floating point? 

Yes.  You don't really need that though.  These days there are only
two flavors of sum(): float8 accumulator (for float8 and float4 inputs)
and numeric accumulator (for everything else).  You don't need to worry
about overflow anymore.  float8 is faster if you don't mind loss of
precision...
        regards, tom lane


pgsql-sql by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: trying to summarize into a new table by time...
Next
From: Larry Rosenman
Date:
Subject: Re: trying to summarize into a new table by time...