model-writtenrun 1731 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Emmanuel Touzery reported a reproducible memoization-table error on PostgreSQL 17.6 and 18.0, supplying a database dump and a query whose plan used binary-mode Memoize #1.
- David Rowley reproduced the failure and asked whether disabling JIT tuple deforming avoided it; Emmanuel confirmed that this setting alone resolved the error #2 #3 #4.
- David supplied diagnostic scan logging that exposed different raw Datum representations for negative integers under JIT and ordinary tuple deforming, explaining how binary Memoize comparisons could fail #5.
- David traced the discrepancy to zero extension in the JIT tuple-deforming code, demonstrated that signed extension restored matching representations, and attached the one-line fix #6 #7 #8.
- The fix from #8 landed unchanged as 6911f80379; David left the separate boolean zero-extension operation in llvmjit_expr.c unchanged because he expected its input to be zero or one, and recommended disabling jit_tuple_deforming until the minor releases arrived #9.
- The thread ended with Emmanuel asking whether PostgreSQL 17 would receive the fix and David confirming backpatching through PostgreSQL 13, with no further patch revisions pending #10 #11.