Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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

pgsql-hackers by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group