Re: Event trigger table rewrite doc missing ALTER MATERIALIZED VIEW case

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Kirill Reshke <reshkekirill(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Event trigger table rewrite doc missing ALTER MATERIALIZED VIEW case
Date: 2026-10-26 04:29:39
Message-ID: CAKFQuwZ62fg6bwTZg=jC1t3fVPe3aJHv+Rw1_Oy=tQeLd0CVzA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sunday, October 25, 2026, Kirill Reshke <reshkekirill(at)gmail(dot)com> wrote:

> 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
>
>
Probably should also edit: …just before a table [or materialized view] is
rewritten…

This seems like it should be back-patched thru v15.

I’d be a bit more wordy here to connect the unexpected alter type action to
typed tables explicitly.

David J.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message shihao zhong 2026-10-26 04:40:56 Re: Avoid truncated or zero-padded copies of replaced files in backups.
Previous Message Haibo Yan 2026-10-26 04:25:38 Re: [PATCH v1] Batch B-tree TIDs when building a bitmap