Re: [HACKERS] [PATCH] Improve geometric types

Поиск
Список
Период
Сортировка
От Emre Hasegeli
Тема Re: [HACKERS] [PATCH] Improve geometric types
Дата
Msg-id CAE2gYzz1KuT57vrO-XZk3KSqdpehAupJPLYu7AshuUwRF7MiMg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] [PATCH] Improve geometric types  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Ответы Re: [HACKERS] [PATCH] Improve geometric types  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Список pgsql-hackers
> The patch replace pg_hypot with hypot in libc. The man page says
> as follows.
>
> man 3 hypot
>>       If the result overflows, a range error occurs, and the functions return
>>       HUGE_VAL, HUGE_VALF, or HUGE_VALL, respectively.
> ..
>>ERRORS
>>       See math_error(7) for information on how to determine whether an  error
>>       has occurred when calling these functions.
>>
>>       The following errors can occur:
>>
>>       Range error: result overflow
>>              errno  is  set  to ERANGE.  An overflow floating-point exception
>>              (FE_OVERFLOW) is raised.
>>
>>       Range error: result underflow
>>              An underflow floating-point exception (FE_UNDERFLOW) is raised.
>>
>>              These functions do not set errno for this case.
>
> So, the code seems to need some amendments following to this
> spec.

I included them on the latest version.


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Emre Hasegeli
Дата:
Сообщение: Re: [HACKERS] [PATCH] Improve geometric types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] 200 = 199 + 1?