Re: [HACKERS] Re: Trouble with float4 after upgrading from 6.5.3 to 7.0.2 - Mailing list pgsql-general

From Thomas Lockhart
Subject Re: [HACKERS] Re: Trouble with float4 after upgrading from 6.5.3 to 7.0.2
Date
Msg-id 398EDE26.D1547C98@alumni.caltech.edu
Whole thread Raw
In response to Trouble with float4 after upgrading from 6.5.3 to 7.0.2  ("Romanenko Mikhail" <mikhail@angg.ru>)
List pgsql-general
> Perhaps the old way of considering equality only to float accuracy
> is more useful, even though it opens us up to problems like overflow
> errors in "float4var = 1e100".  Comments anyone?

I would not have anticipated this either. I agree that downconverting to
float4 is the right solution.

Possible overflow errors can be checked in advance using the macros or
routines already there. This may be an example of why those could be A
Good Thing in some instances.

                    - Thomas

pgsql-general by date:

Previous
From: Philip Warner
Date:
Subject: Re: [HACKERS] Re: Trouble with float4 after upgrading from 6.5.3 to 7.0.2
Next
From: Thomas Lockhart
Date:
Subject: Re: [HACKERS] Re: Trouble with float4 afterupgrading from 6.5.3 to 7.0.2