Hi,

Small documentation omission found while testing event triggers on:
the Event Triggers chapter says in "table_rewrite" section:

    The table_rewrite event occurs just before a table is rewritten by
    some actions of the commands ALTER TABLE and ALTER TYPE.

but ALTER MATERIALIZED VIEW ... SET ACCESS METHOD also fires
table_rewrite, with TG_TAG = 'ALTER MATERIALIZED VIEW'


Suggested fix:

diff --git a/doc/src/sgml/event-trigger.sgml b/doc/src/sgml/event-trigger.sgml
--- a/doc/src/sgml/event-trigger.sgml
+++ b/doc/src/sgml/event-trigger.sgml
@@ -150,7 +150,8 @@
    <para>
     The <literal>table_rewrite</literal> event occurs just before a table is
-    rewritten by some actions of the commands <literal>ALTER TABLE</literal>
-    and <literal>ALTER TYPE</literal>.  While other
+    rewritten by some actions of the commands <literal>ALTER TABLE</literal>,
+    <literal>ALTER MATERIALIZED VIEW</literal> and <literal>ALTER
TYPE</literal>.
+    While other


-- 
Best regards,
Kirill Reshke


Reply via email to