BUG #17576: Event_trigger ddl_command_end not firing during CREATE PROCEDURE

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: gabriel(dot)franco(at)quintoandar(dot)com(dot)br
Subject: BUG #17576: Event_trigger ddl_command_end not firing during CREATE PROCEDURE
Date: 2022-08-05 16:28:21
Message-ID: 17576-8d57c13422ff75cb@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17576
Logged by: Gabriel Rodrigues Franco
Email address: gabriel(dot)franco(at)quintoandar(dot)com(dot)br
PostgreSQL version: 13.4
Operating system: Its and Amazon RDS
Description:

Hello PostgreSQL team,

I have a FUNCTION that needs to be executed after any object creation
(tables, functions, procedures...), and it is triggering as expected for any
DDL operation against tables and functions, but not for PROCEDURES.

CREATE EVENT TRIGGER tg_change_obj_owner ON ddl_command_end
EXECUTE FUNCTION public.pg_change_obj_owner();

I saw in the Matrix that this was not supposed to happen:
https://www.postgresql.org/docs/current/event-trigger-matrix.html

Could you help me?

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2022-08-05 17:37:34 Re: BUG #17576: Event_trigger ddl_command_end not firing during CREATE PROCEDURE
Previous Message Alvaro Herrera 2022-08-05 16:05:49 Re: [External] Re: [PATCH] BUG FIX: inconsistent page found in BRIN_REGULAR_PAGE