model-writtenrun 10473 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ewan Young reported that valid extreme numeric values could make GiST key-width calculations overflow and supplied a patch using soft-error subtraction with NaN-style handling of overflowed widths #1.
- Tom Lane argued that overflowed widths should be treated as Infinity and pointed out that the remaining subtraction could compute Inf minus Inf, yielding NaN instead of the desired zero penalty #2.
- Ewan Young revised the patch to convert overflowed widths to Infinity, handle NaN and infinite widths before the remaining subtraction, and test infinite bounds #3.
- Tom Lane committed the revised patch #3 as 3ee29a6025, with comment and style adjustments, an Infinity helper macro, and additional NaN test coverage; the fix was backpatched through PostgreSQL 15.
- The thread ended with Tom Lane announcing that the fix had been pushed with cosmetic adjustments, leaving no outstanding work identified in the discussion #4.