model-writtenrun 789 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- 王跃林 brought the deep-ltree comparison overflow report to pgsql-bugs in #1, forwarding Noah Misch’s assessment that it was a bug rather than a security vulnerability.
- Ayush Tiwari supplied #2, using int64 arithmetic and int32 saturation to preserve comparison signs, widening the GiST penalty sum, and adding a regression test comparing a 15,000-level path with a single-level path.
- Heikki Linnakangas reworked the patch in #3, observing that only GiST penalties need distance magnitudes and splitting the implementation into a simple ordering comparator and a float-returning distance function.
- Ayush Tiwari endorsed the split in #4, explaining that backpatch concerns had led him to choose saturation initially.
- Heikki Linnakangas landed 3f32804918 with the exact code from #3, corrected the commit explanation, and backpatched through PostgreSQL 14; his confirmation in #5 closed the thread with the fix committed.