model-writtenrun 4848 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dean Rasheed reported that MERGE failed to reject unreachable WHEN clauses without an AND condition, discovering the pre-existing bug while rereading other MERGE work #1.
- His patch checks whether a clause is unreachable before recording whether it is unconditional, allowing consecutive unconditional clauses of the same type to be rejected #1.
- The patch also changes the regression test to exercise an unconditional unreachable WHEN MATCHED clause while retaining the expected syntax error #1.
- Dean committed the patch unchanged as f026c16a2c, with a backpatch to PostgreSQL 15, where MERGE was introduced.
- Dean confirmed that the fix was pushed and backpatched; the thread ends with the work landed and no independent review recorded #2.