model-writtenrun 1145 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tender Wang reported a Memoize eviction failure caused by differing sign extension before and after tuple storage, and proposed hashing only typLen bytes in #1.
- David Rowley instead proposed correcting hash_numeric() return conversions in #2, which Tender confirmed eliminated the error in #3; David explained the sign-extension and big-endian problems with the original proposal in #4, and Tender withdrew that approach in #5.
- After reproducing the failure, David traced it to tuple storage normalizing an incorrectly returned Datum and raised concerns about backpatching function return changes and other incorrect PG_RETURN_* uses in #6.
- David supplied a broader defensive fix that normalizes Datums before image comparison and hashing in #7, preferring it to fixing individual return macros; Tender accepted that approach in #8.
- David committed #7 as 0d866282b8 with equivalent typed comparisons and clearer comments, then announced completion in #9; the hash_numeric()-specific patch was superseded, and the reported failure was fixed.