model-writtenrun 3029 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Xing Guo proposed determining whether casetest.value is null during JIT code generation, eliminating unnecessary generated branches for CASE and DOMAIN test values in #1.
- Andreas Karlsson supplied a broader replacement that selects specialized executor opcodes during expression initialization, simplifying both interpreted and JIT execution while leaving removal of caseValue_datum/domainValue_datum for future work #2; Xing endorsed this approach over his original patch #3.
- Heikki Linnakangas regarded the patches as correct but favored replacing the externally supplied CASE and DOMAIN values with explicitly named expression parameters, explaining that reusing PARAM_EXEC would entail allocation and lazy-evaluation complications #4.
- Tom Lane initially suggested proceeding only with domain-value specialization because a separate redesign could eliminate executor support for CaseTestExpr, while he saw insufficient reason to redesign CoerceToDomainValue #5.
- Tom then decided the separate redesign was too uncertain to delay this simplification and committed Andreas's full patch #2 as 115a365519, with cosmetic cleanup and separate CASE and DOMAIN handlers for readability; his final report confirms both halves landed, leaving the broader redesign to separate work #6.