model-writtenrun 8362 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reported that exp(-Infinity) incorrectly raised an underflow error instead of returning zero, asked whether to back-patch, and then identified analogous power() failures for infinite inputs #1 #2.
- Darafei "Komяpa" Praliaskouski advocated removing floating-point underflow and overflow errors generally, but Tom Lane excluded that broader change because of portability and behavioral concerns; Darafei countered that subnormal values were already supported #3 #4 #5.
- Emre Hasegeli supported correcting the inconsistency with other functions for infinite inputs, favored changing HEAD only to reduce risk, and agreed that broader floating-point error policy belonged in a separate discussion #6 #7.
- Tom Lane submitted a patch that explicitly handles NaN and infinity in exp(), permits legitimate zero results from power() with infinite inputs, and adds edge-case regression tests while retaining errors for finite-input underflow #8.
- At the thread's last message, Tom Lane proposed trying the patch on HEAD first because the expanded power() tests might expose older platforms' library inconsistencies, leaving back-patching undecided #8.
- Tom Lane subsequently committed the patch unchanged as decbe2bfb1; its commit message records known test failures on gaur and leaves open whether platform failures should prompt fewer tests or additional pow() overrides.