model-writtenrun 6339 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yaoguang Chen reported a PostgreSQL 14beta1 crash when an INSERT inside WITH rewrote to DO INSTEAD NOTIFY in #1, and Richard Guo traced the immediate failure to a rule-action Query with a null jointree in #2.
- Tom Lane argued in #3 that the case should be rejected because the executor cannot handle utility statements within a plan tree; executing NOTIFY separately raised semantic concerns, and related rule cases were already prohibited.
- Tom supplied #4, adding the missing rejection in RewriteQuery and regression coverage for DO INSTEAD NOTHING, DO INSTEAD NOTIFY, DO ALSO, and multi-statement DO INSTEAD rules inside WITH.
- Richard Guo endorsed the rejection and confirmed that the patch passed his testing in #5.
- Tom committed #4 unchanged as a9da1934e9, with backports to all supported branches, and confirmed the push in #6, leaving no outstanding work in the thread.