model-writtenrun 5312 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Önder Kalacı reported that changing a materialized view's access method failed with an unexpected-command-tag error when an event trigger existed, and supplied a command-tag fix with regression coverage for PostgreSQL 15 #1.
- Michael Paquier warned that adding an event trigger to create_am.sql could interfere with parallel tests #2, so Önder moved the test into event_trigger.sql while preserving the fix #3.
- Tom Lane agreed that the behavior was a bug but questioned the regression test's ongoing cost, arguing that the larger problem was inadequate validation of table_rewrite_ok and suggesting stronger verification or removal of the flag #4.
- Michael committed the revised patch with a smaller test that checks the access-method rewrite reason and a documentation correction, retaining the original command-tag fix and backpatching through PostgreSQL 15 #3 93f2349c36.
- Michael explained that the retained test also covered the previously unchecked access-method rewrite reason, while broader changes to command-tag validation were outside the PostgreSQL 15 fix #5.
- The thread ended with the reported bug fixed and broader validation questions unresolved; Michael reiterated that global event triggers had caused parallel-test interference before, supporting the test's relocation #6.