model-writtenrun 8278 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened #1 after Dean Rasheed questioned why floating-point NaN divided by zero raised an error, concluding that returning NaN better matched IEEE 754 and existing numeric arithmetic.
- In #1, Tom Lane supplied guards that exempt NaN numerators from division-by-zero errors, added float4 and float8 regression coverage, and proposed avoiding a backpatch.
- Tom Lane also asked in #1 whether unlikely() should wrap just the zero-divisor check or the entire condition, rejecting a separate unlikely() around the non-NaN check.
- Dean Rasheed favored the patch's existing spelling in #2, reasoning that it tells the compiler the NaN test is rarely needed; he reported no testing or defect and proposed no change to the submitted patch.
- Tom Lane committed #1 unchanged as 4fb6aeb4f6 and confirmed the landing in #3, retaining the original unlikely() placement and leaving no outstanding patch work.