model-writtenrun 8277 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened the thread after Dean Rasheed identified incorrect infinite-offset results, posting a patch that forced infinite boundaries and added float4 and float8 window tests; he initially proposed back-patching it #1.
- Tom reconsidered the boundary semantics and posted a replacement that prevented an infinity from infinitely preceding or following itself, using explicit comparisons when both base and offset were infinite #2.
- Dean questioned the replacement and then analyzed both versions, showing that the second conflicted with the documented arithmetic contract; he proposed using ordinary arithmetic except where it would produce NaN, returning true in those exceptional cases #3 #5.
- Tom initially preferred the second patch's results, but accepted Dean's proposal after reasoning that ordinary infinity arithmetic and symmetry required the same behavior in the otherwise undefined cases #6 #7.
- Tom committed the revised second patch as a4faef8f8f, preserving its SQL tests while simplifying both functions' exceptional-case logic and adjusting the expected results.
- Tom reported that the fix landed only on the development branch because the chosen semantics for infinite values made back-patching debatable, and Dean agreed with that decision in the final reply #8 #9.