Make floating-point "NaN / 0" return NaN instead of raising an error.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 4fb6aeb4f6e807c8ce3e140d2d2281f50eb6fb1a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2020-07-20T23:44:45Z
Releases: 14.0
Make floating-point "NaN / 0" return NaN instead of raising an error.

This is more consistent with the IEEE 754 spec and our treatment of
NaNs elsewhere; in particular, the case has always acted that way in
"numeric" arithmetic.

Noted by Dean Rasheed.

Discussion: https://postgr.es/m/3421746.1594927785@sss.pgh.pa.us

Files

Discussion