Re: Anomaly with SUM().

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Anomaly with SUM().
Дата
Msg-id 20030808121849.M77201-100000@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Anomaly with SUM().  (Anthony Best <abest@digitalflex.net>)
Ответы Re: Anomaly with SUM().  (Anthony Best <abest@digitalflex.net>)
Список pgsql-general
On Fri, 8 Aug 2003, Anthony Best wrote:

> I've noticed that the SUM() seems to overflow under some situations.
>
> The only difference is the order that the data is retrived from the
> database.

Is amount a float type column (float4 or float8)? If so, you're probably
just running into issues with float precision problems.  Changing the
order of the operations can change the final value of a sequence of
operations on float.


В списке pgsql-general по дате отправления:

Предыдущее
От: Dennis Gearon
Дата:
Сообщение: Re: Anomaly with SUM().
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Anomaly with SUM().