Re: exp() versus the POSIX standard
Emre Hasegeli <emre@hasegeli.com>
From: Emre Hasegeli <emre@hasegeli.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-06-12T15:16:14Z
Lists: pgsql-hackers
> Does anyone disagree that that's a bug? Should we back-patch > a fix, or just change it in HEAD? Given the lack of user > complaints, I lean a bit towards the latter, but am not sure. The other functions and operators pay attention to not give an error when the input is Inf or 0. exp() and power() are at least inconsistent by doing so. I don't think this behavior is useful. Although it'd still be less risky to fix it in HEAD only.
Commits
-
Fix behavior of exp() and power() for infinity inputs.
- decbe2bfb105 14.0 landed
-
Fix float4/8 to handle Infinity and Nan consistently, e.g. Infinity is a
- f9ac414c35ea 8.3.0 cited
-
Cleanup.
- 8fecd4febf83 7.1.1 cited