Re: Missing tags ALTER ROUTINE and DROP ROUTINE in Event Trigger Firing Matrix

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: leslie(dot)lemaire(at)developpement-durable(dot)gouv(dot)fr, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Missing tags ALTER ROUTINE and DROP ROUTINE in Event Trigger Firing Matrix
Date: 2022-03-09 06:04:05
Message-ID: YihDVYONoLuU5oqY@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Hi Leslie,

On Sat, Mar 05, 2022 at 10:15:33AM +0000, PG Doc comments form wrote:
> "ALTER ROUTINE" and "DROP ROUTINE" are not listed in the "Event Trigger
> Firing Matrix" documentation page, even though these tags seem supported
> from PostgreSQL 11 onwards.
>
> It would be really useful to mention them, since alterations and deletions
> of functions and procedures through ALTER ROUTINE and DROP ROUTINE commands
> won't be caught by a trigger firing only on "ALTER PROCEDURE" and "ALTER
> FUNCTION" tags (respectively "DROP PROCEDURE" and "DROP FUNCTION" tags).

Thanks for the report. Indeed, the table is missing that ALTER
ROUTINE would fire the events ddl_command_start and ddl_command_end.
DROP ROUTINE fires on sql_drop, ddl_command_start and
ddl_command_end. I have applied a patch to add this information
to the docs down to 11.

Regards,
--
Michael

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2022-03-11 07:09:35 returning clause is not clearly documented
Previous Message Michael Paquier 2022-03-09 01:45:18 Re: add free space map link in pg_freespacemap page