pgsql: Allow event trigger table_rewrite for ALTER MATERIALIZED VIEW

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow event trigger table_rewrite for ALTER MATERIALIZED VIEW
Date: 2022-08-17 05:55:52
Message-ID: E1oOC1v-0018dF-4G@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/93f2349c36a7555a81d5e26edf9a0213fb3d323a

Modified Files
--------------
doc/src/sgml/event-trigger.sgml | 2 +-
src/include/tcop/cmdtaglist.h | 2 +-
src/test/regress/expected/event_trigger.out | 5 +++++
src/test/regress/sql/event_trigger.sql | 5 +++++
4 files changed, 12 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2022-08-17 06:29:33 pgsql: Use SetInstallXLogFileSegmentActive() in more places in xlog.c
Previous Message Tomas Vondra 2022-08-16 22:20:30 pgsql: Fix assert in logicalmsg_desc