model-writtenrun 1846 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sami Imseih reported that experimentally adding an OID field to PgStat_HashKey introduced padding that could lose its initialized contents during optimized pass-by-value calls, causing hash lookup failures, and proposed passing the key by reference in #1.
- Andres Freund explained that padding contents were not a compiler guarantee in #3, while Michael Paquier proposed checking that keys contain no padding in #7 and #8, and Andres favored documenting that restriction in #9.
- Sami reported that Valgrind testing on unmodified HEAD did not reproduce the problem and retained his pass-by-reference solution with an explanatory comment in #10.
- Michael offered a static size assertion instead in #11; Sami objected that it would restrict future field additions in #12 and #14, so Michael temporarily dropped the assertion and posted a documented no-padding rule with three memset calls replaced by initializers in #15.
- Sami continued to favor allowing new fields in #16, and Ranier Vilela questioned whether initializers safely handled padding in #17, while Michael argued that keeping the key compact and using its existing eight-byte object identifier was preferable in #18.
- Sami requested explicit guidance to represent additional information through objid in #21, then refined Michael's proposed wording and requested restoration of the static assertion in #23; Michael incorporated both changes in #24.
- Sami accepted that objid was sufficient and approved the final patch in #25; Michael committed #24 unchanged as 3cd3a039da, leaving the original pass-by-reference proposal unused.
- Michael announced the HEAD-only landing and said backpatching was not urgent in #26, and Sami marked the Commitfest entry committed in #27.
- The thread ended with the agreed change landed and no remaining patch under review; Bertrand Drouvot noted in #29 that the existing objid could also encode tablespace and relation identifiers for another proposed use case.