model-writtenrun 543 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dan Stefura reported a severe PostgreSQL 18 hash semi join slowdown with multiple equality keys and NULL values, reproduced it on PostgreSQL 19 beta, and identified disabling hash joins as a workaround #1.
- Tomas Vondra bisected the regression to an earlier change separating intermediate hash results from ExprState results, but had not yet identified the precise failure mechanism #2.
- David Rowley explained that encountering a NULL before the final hash key wrote only the intermediate result before exiting, leaving ExprState unset, and supplied a patch correcting both strict interpreter operations while he investigated JIT #3.
- David committed the interpreter patch with an additional equivalent JIT correction as 60826a352d, announced backpatching through PostgreSQL 18, and explained that he omitted a regression test because reliably checking platform-dependent hash memory usage was too elaborate for this performance bug #4.
- With the fix landed, David closed by explaining that placing the sole nullable key last could avoid the bug, while disabling hash joins remained the safer workaround until release when other keys might also contain NULLs #5.