Re: power() function in Windows: "value out of range: underflow" - Mailing list pgsql-bugs

From Euler Taveira
Subject Re: power() function in Windows: "value out of range: underflow"
Date
Msg-id CAHE3wgj4BCyjVNtVn9HysoApzfT5zK2uFCgCG8g+Ow9G50v1+w@mail.gmail.com
Whole thread Raw
In response to power() function in Windows: "value out of range: underflow"  (Huong Dangminh <huo-dangminh@ys.jp.nec.com>)
Responses RE: power() function in Windows: "value out of range: underflow"  (Huong Dangminh <huo-dangminh@ys.jp.nec.com>)
RE: power() function in Windows: "value out of range: underflow"  (Huong Dangminh <huo-dangminh@ys.jp.nec.com>)
List pgsql-bugs
2018-04-10 5:30 GMT-03:00 Huong Dangminh <huo-dangminh@ys.jp.nec.com>:
> There are some cases that power() function does not work
> correctly with 'NaN' arguments in Windows environment.
> Something like,
>
What is your exact OS version? What is your postgres version? I tested
with Windows 10 (10.0.16299) x64 and couldn't reproduce the error.

> postgres=# select power('NaN',11);
> ERROR:  value out of range: underflow
> postgres=# select power('NaN','NaN');
> ERROR:  value out of range: underflow
> postgres=# select power(11,'NaN');
> ERROR:  value out of range: underflow
>
> In Linux environment, instead of ERROR it returns 'NaN'.
>
Could you show us a simple test case? Print arguments, result and errno.


-- 
   Euler Taveira                                   Timbira -
http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento


pgsql-bugs by date:

Previous
From: Stephen Frost
Date:
Subject: Re: LDAP authentication fails with concurrent create extensions
Next
From: PG Bug reporting form
Date:
Subject: BUG #15149: Invalid cache id = 42