Re: [COMMITTERS] pgsql: Put back ERANGE test in dpow().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [COMMITTERS] pgsql: Put back ERANGE test in dpow().
Дата
Msg-id 26099.1168056457@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: Put back ERANGE test in  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-patches
Bruce Momjian <bruce@momjian.us> writes:
> Actually, when you return ERANGE, what is 'result'?  Nan?  Inf?  finite?

I believe it's HUGE_VAL (the largest finite value) ... which is
something I don't want to explicitly test for, any more than I liked
the explicit use of min/max values before.  Your isinf test is OK
because the point is that we want to replace any non-Inf result with Inf
if the result overflowed.

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: [HACKERS] wal_checksum = on (default) | off
Следующее
От: "Gurjeet Singh"
Дата:
Сообщение: Re: A patch to pg_regress for Windows port