model-writtenrun 350 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yuelin Wang reported that parallel GIN builds truncate key lengths above 65535 bytes, causing posting-list decoding to read key data and potentially run beyond the allocation, and supplied a reproducer in #1.
- Ewan Young reproduced the failure and proposed widening GinTuple.keylen to uint32 in #2, preserving support for large compressible keys instead of imposing an arbitrary uncompressed-length limit.
- Heikki Linnakangas requested consistent key-length types and suggested early size rejection in #3; Ewan supplied int-based and early-rejection alternatives in #4, explaining that index_form_tuple() compresses keys before the real size check.
- Heikki's sanitizer testing exposed a misaligned Datum access and he accepted preserving compressible keys in #5; Peter Eisentraut advocated Size in #6, leading Ewan to adopt Size and reuse _gin_parse_tuple_key() in #7, while deferring broader tuple-metadata cleanup.
- Tom Lane questioned mixed field widths and tuple growth in #8; Ewan defended serial/parallel equivalence and explained why an early uncompressed-length cap would reject currently valid keys in #9.
- After a nearly two-month gap, Peter explained that the helper change still left by-reference values vulnerable to misalignment and proposed explicitly aligning GinTuple.data, with a union workaround for PostgreSQL 18, in #10.
- Ewan supplied branch-specific alignment patches in #11, removed the helper workaround, corrected the estimated header growth to eight bytes on 64-bit systems, and reported successful sanitizer, regression, and index-consistency checks.
- Peter confirmed committing the patches in #12; 937a0e68cb matches the union-based variant described in #11, with a visible union-name adjustment from k to u.
- Tom reported ABI-checker failures caused by the changed GinTuple layout and requested an ABI-history entry in #13; the thread's final message, #14, justified the change because the type is internal and transient and promised the update, subsequently implemented by ce2648b16a.