model-writtenrun 4393 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that creating an ltree GiST index with siglen=99 caused sanitizer-detected unaligned memory access because the signature precedes fields requiring alignment #1.
- Tom Lane proposed restricting signature lengths, initially considering a check during signature access, while Alexander Lakhin inspected and tested other signature-using operator classes and found no equivalent problem #2 #3.
- Alexander Korotkov supplied an integer-alignment check using the existing reloption-validator infrastructure, which also rejects invalid options for empty indexes #4.
- Alexander Lakhin confirmed the fix worked and requested documentation and clearer diagnostics; Korotkov incorporated these suggestions and changed the minimum signature length to INTALIGN(1) #6 #7.
- Pavel Borisov questioned inconsistent diagnostic details and supplied a wording revision, but Tom Lane recommended a simple multiple-of-four error with range failures left to the existing range check #8 #10 #13.
- Discussion of why alignment errors preceded range errors exposed a separate bug: custom validators ran even when validate was false, so Korotkov added a prerequisite reloptions fix alongside the revised ltree patch and proposed backpatching both #14 #15 #16.
- Tom Lane approved the two-patch approach and backpatching but caught stale regression expectations; Korotkov corrected them, and Pavel Borisov approved both final patches after confirming that range errors now took precedence #17 #18 #19.
- The final submission's reloptions guard landed unchanged as cd115c3530, and its complete ltree patch landed unchanged on the development branch as 8bbd0cce92, with backpatching through PostgreSQL 13 #18.
- The supplied candidate 48c6825d0e is the PostgreSQL 13 version of the same ltree change represented by 8bbd0cce92, so the candidate list represents two distinct fixes.
- Korotkov closed the thread by confirming that the patches were pushed, leaving no submitted patch outstanding #20.