Allow event trigger table_rewrite for ALTER MATERIALIZED VIEW
authorMichael Paquier <[email protected]>
Wed, 17 Aug 2022 05:55:20 +0000 (14:55 +0900)
committerMichael Paquier <[email protected]>
Wed, 17 Aug 2022 05:55:20 +0000 (14:55 +0900)
commit93f2349c36a7555a81d5e26edf9a0213fb3d323a
tree02a39d0492129a269bd6f7a5464c7695c49ae675
parentc52ad9c4efdb91ce274c65b1acdb350e439c7b2d
Allow event trigger table_rewrite for ALTER MATERIALIZED VIEW

This event can happen when using SET ACCESS METHOD, as the data files of
the materialized need a full refresh but this command tag was not
updated to reflect that.  The documentation is updated to track this
behavior.

Author: Onder Kalaci
Discussion: https://postgr.es/m/CACawEhXwHN3X34FiwoYG8vXR-oyUdrp7qcfRWSzS+NPahS5gSw@mail.gmail.com
Backpatch-through: 15
doc/src/sgml/event-trigger.sgml
src/include/tcop/cmdtaglist.h
src/test/regress/expected/event_trigger.out
src/test/regress/sql/event_trigger.sql