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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: trying to summarize into a new table by time...
Дата
Msg-id 11883.991493939@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: trying to summarize into a new table by time...  (Larry Rosenman <ler@lerctr.org>)
Ответы Re: trying to summarize into a new table by time...  (Larry Rosenman <ler@lerctr.org>)
Список 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 по дате отправления:

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: Re: trying to summarize into a new table by time...
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: trying to summarize into a new table by time...