Re: trying to summarize into a new table by time...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: PostgreSQL SQL List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: trying to summarize into a new table by time...
Date: 2001-06-02 14:58:59
Message-ID: 11883.991493939@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Larry Rosenman 2001-06-02 15:02:25 Re: trying to summarize into a new table by time...
Previous Message Larry Rosenman 2001-06-02 14:44:35 Re: trying to summarize into a new table by time...