model-writtenrun 4714 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- While working on MERGE RETURNING, Dean Rasheed noticed that an assertion in ExecInitPartitionInfo() appeared to omit MERGE #1.
- Dean confirmed through testing that this was a pre-existing bug triggered by MERGE into a partitioned table with row-level security and nonempty WITH CHECK OPTION lists #1.
- Dean submitted a patch allowing CMD_MERGE in the assertion, updating explanatory comments, and adding a regression test that checks enforcement of the row-level security policy #1.
- The patch landed unchanged apart from rebase context as 0d3b49d4af, whose commit message specifies backpatching to PostgreSQL 15.
- Dean closed the thread by confirming that the fix had been pushed and backpatched; no further work or independent review appears in the thread #2.