Revert back-branch changes in power()'s behavior for NaN inputs.
Tom Lane <tgl@sss.pgh.pa.us>
Revert back-branch changes in power()'s behavior for NaN inputs. Per discussion, the value of fixing these bugs in the back branches doesn't outweigh the downsides of changing corner-case behavior in a minor release. Hence, revert commits 217d8f3a1 and 4d864de48 in the v10 branch and the corresponding commits in 9.3-9.6. Discussion: https://postgr.es/m/75DB81BEEA95B445AE6D576A0A5C9E936A73E741@BPXM05GP.gisp.nec.co.jp
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/float.c | modified | +1 −20 |
| src/test/regress/expected/float8-exp-three-digits-win32.out | modified | +0 −36 |
| src/test/regress/expected/float8.out | modified | +0 −36 |
| src/test/regress/expected/float8-small-is-zero_1.out | modified | +0 −36 |
| src/test/regress/expected/float8-small-is-zero.out | modified | +0 −36 |
| src/test/regress/sql/float8.sql | modified | +0 −6 |
Discussion
- power() function in Windows: "value out of range: underflow" 21 messages · 2018-04-10 → 2018-05-02