model-writtenrun 2886 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that COPY over an INSERT rewritten by a DO INSTEAD NOTIFY rule triggers an assertion failure, providing a reproducer in #1.
- Tender Wang reproduced the failure on HEAD and submitted a fix removing the failing assertion, allowing utility commands through the subsequent assertion, and adding regression coverage in #2.
- Tom Lane explained that the resulting missing-RETURNING error would mislead users and supplied a revision with an explicit utility-command error, copydml regression coverage, and a nearby grammar correction; he chose generic wording to accommodate future utility commands in rules #3.
- The revised patch #3 landed unchanged apart from base-dependent placement as 6a57a457cf, crediting Tender Wang and Tom Lane and specifying backpatching to all supported branches.
- Tender Wang agreed with the revised patch and said it looked good in #4, after the commit; the thread ended with the fix landed and no outstanding requests.