Re: Anomaly with SUM(). - Mailing list pgsql-general

From Anthony Best
Subject Re: Anomaly with SUM().
Date
Msg-id 3F34018B.2080403@digitalflex.net
Whole thread Raw
In response to Re: Anomaly with SUM().  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-general
Stephan Szabo wrote:

>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.
>
>
It's "double precision." (Which is float8?).

So, should I tweak my join to preserve order, or something else?




pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Anomaly with SUM().
Next
From: Tom Lane
Date:
Subject: Re: Trying to create a GiST index in 7.3