model-writtenrun 3365 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported uninitialized memory reads in Memoize's binary mode in #1; David Rowley traced them to index-only scans returning compact cstrings where full-sized names were expected in #2, and demonstrated incorrect record_image_eq results in #3.
- Peter Geoghegan explained the existing space-saving name/cstring convention and related B-tree workarounds in #4 and #6, after which David submitted attribute-aware comparison and hashing functions plus removal of the old functions in #7.
- After discussing broader exposure through datumCopy with Andres Freund, David replaced that workaround with index-only-scan conversion to fully padded names in #8, addressing the values at their source.
- Alexander reproduced the problem without Memoize using array aggregation and verified that the conversion patch eliminated the Valgrind complaint in #9; after more than a year from the original draft, David revived the same implementation on current sources in #10.
- Alexander found that domains over name still failed and that a header was missing in #11, while Tom Lane requested comments and operator-class-based detection to avoid unnecessary conversion for other index types in #12; David responded with operator-family and input-type checks using existing relcache fields in #13.
- Alexander's Valgrind testing exposed an out-of-bounds read with INCLUDE columns in #14; Tom identified iteration beyond the key-attribute arrays and suggested detecting cstring storage with name input instead of depending on a B-tree operator family in #15.
- David verified that included name columns already retain their full padding, restricted detection to key attributes, adopted the generic storage-type check, and added regression coverage in #16.
- Tom approved the final version and suggested an AttrNumber array in #17, while Alexander confirmed successful testing including ranges and arrays and identified an obsolete include in #18.
- David committed #16 as a63224be49 with light type, header, and comment edits, backpatched through PostgreSQL 12, and confirmed completion in #19; the original datum-function workaround was superseded.