Re: [BUGS] BUG #2846: inconsistent and confusing handling of underflows,

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org, Roman Kononov <kononov195-pgsql(at)yahoo(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] BUG #2846: inconsistent and confusing handling of underflows,
Date: 2006-12-27 23:19:31
Message-ID: 25444.1167261571@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Roman Kononov <kononov195-pgsql(at)yahoo(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-12-27 23:22:17 Re: (SETOF) RECORD AS complex_type
Previous Message Tom Lane 2006-12-27 23:17:38 Re: pg_hba.conf hostname todo

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-12-27 23:26:47 Re: [BUGS] BUG #2846: inconsistent and confusing handling of underflows,
Previous Message Simon Riggs 2006-12-27 22:54:57 Re: Load distributed checkpoint