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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing handling of underflows,
Дата
Msg-id 25444.1167261571@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing handling  (Roman Kononov <kononov195-pgsql@yahoo.com>)
Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing  (Bruce Momjian <bruce@momjian.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_hba.conf hostname todo
Следующее
От: Tom Lane
Дата:
Сообщение: Re: (SETOF) RECORD AS complex_type