Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing handling of underflows, - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing handling of underflows,
Date
Msg-id 25444.1167261571@sss.pgh.pa.us
Whole thread Raw
Responses Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing handling
Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing
List pgsql-hackers
Roman Kononov <kononov195-pgsql@yahoo.com> writes:
> On 12/27/2006 03:23 PM, Bruce Momjian wrote:
>> Are you sure?  As I remember, computation automatically upgrades to
>> 'double'.  See this program and output:

> This is platform- and compiler- dependent:

... and probably irrelevant, too.  We should store the result into a
float4 variable and then test for isinf() on that; that eliminates the
question of whether the compiler did the multiply in a wider format or
not.

            regards, tom lane

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_hba.conf hostname todo
Next
From: Tom Lane
Date:
Subject: Re: (SETOF) RECORD AS complex_type