model-writtenrun 7974 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrew Gierth traced an IRC crash report from ftzdomino to gtrgm_picksplit accessing an uninitialized signature cache entry when splitting exactly two items, and questioned why the last item was excluded from seed selection #1.
- Andrew Gierth supplied a minimal fix that initialized the last cache entry before constructing seed datums, reporting that the original reporter had verified it fixed the crash #1.
- Alexander Korotkov explained that treating the last item as a newly inserted tuple was unjustified and proposed considering all items together; his replacement patch removed the special handling entirely #2.
- Andrew Gierth confirmed that changing signatures from arrays to pointers explained why the longstanding bug began crashing in PostgreSQL 13, and accepted Alexander Korotkov's approach subject to finishing testing #3.
- Andrew Gierth subsequently committed the replacement patch from #2 unchanged as 3836d4b643, crediting Alexander Korotkov and recording his own analysis and testing; the fix was backpatched across all supported branches, completing the thread's proposed repair.