model-writtenrun 5888 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jesse Zhang, reporting work with Chris Hajas, demonstrated that polygon containment returned different rows under GiST and sequential scans when points contained NaN, and also showed suspicious zero distances; Bruce Momjian confirmed the scan discrepancy in #1 and #2.
- Kyotaro Horiguchi proposed guarding point_inside() against NaNs in #3, but Tom Lane questioned whether returning false for every such case established coherent geometric semantics in #4.
- Kyotaro expanded the investigation across geo_ops.c in #5, proposing false for NaN-dependent predicates and NaN propagation through arithmetic, while acknowledging equality exceptions and difficult infinity cases.
- Georgios Kokolatos reviewed the proposal, challenged inconsistent infinite distances and requested documentation in #6; Kyotaro responded with simplified intersection calculations, horizontal-line handling, another point test, documentation and a division-by-infinity fix in #7.
- After Georgios reported passing tests and approved the revised patch in #8, Tom extracted the unchanged division checks and added focused regression tests in fac83dbd6f; Kyotaro resent the geometric remainder in #9, and Georgios reaffirmed his review in #10.
- Tom separated baseline tests from behavior changes and introduced NaN-propagating minimum helpers in #11, while identifying questionable infinite-distance results, unclear invalid-line semantics and a real compilation failure caused by naming variables isnan.
- Following Tom's argument that replacing sensible infinite distances with NaN would be a regression in #14, Kyotaro added coefficient-specific multiplication, revised intersection and distance calculations, fuller invalid-line handling and the anynan rename in #15.
- Tom rejected coefficient-specific multiplication and changing the standards-defined behavior of pg_hypot(), and argued against changing stored bounding-box conventions in #16; his replacement patch focused on distinguishing an undefined closest point from a potentially well-defined distance.
- Tom then discovered that horizontal construction mishandled infinite coordinates and that representing vertical slopes as DBL_MAX concealed broken infinity comparisons, adding a separate slope-and-comparison patch in #17.
- Tom committed the baseline-test component of #17 as a45272b25d, crediting Kyotaro and adding his own line-construction regression query.
- Tom split the third component of #17 into 8597a48d01, which revised fuzzy infinity comparisons and simplified NaN equality handling, and 9fe649ea29, which retained the proposed infinity slopes and horizontal-line construction.
- Tom posted the rebased, still-uncommitted closest-point remainder in #18; Kyotaro's approval of the slope changes in #19 came after their commits.
- Kyotaro challenged the remaining NaN distance for an infinite-coordinate point and a vertical line in #20; Tom favored explicit geometric special cases over altered multiplication semantics in #21, and Kyotaro agreed to rewrite in #22.
- Kyotaro's broad revision in #23 removed float8_coef_mul(), restored pg_hypot() semantics, combined explicit horizontal and vertical cases with direct distance calculation, and retained Tom's closest-point checks; NaN equality behavior and the meaning of line equality remained unresolved.
- Tom marked the remainder as needing review in #25, and Kyotaro rebased it in #26, but the next substantial development did not arrive until roughly a year later.
- Kyotaro returned with an arithmetic patch and a new tri-state comparison layer in #28, proposing SQL NULL for NaN-dependent comparisons and corresponding GiST handling, while describing related bugs the work addressed.
- Kyotaro cautioned that the full semantic change would not be backpatched and reported a bug in the potentially backpatchable computeDistance portion in #29.
- Jacob Champion returned the outstanding proposal for lack of reviewer interest in #30, and Kyotaro declined to pursue it without community interest in #31; the four extracted commits had landed, while the broader arithmetic and tri-state work remained uncommitted.