Re: Event Triggers and Dropping Objects

Поиск
Список
Период
Сортировка
От Miles Elam
Тема Re: Event Triggers and Dropping Objects
Дата
Msg-id CAALojA_QBBJHm6gwsqF6tGNDivEuq3ytjsnOph1dVOjFwBXwrA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Event Triggers and Dropping Objects  (Luca Ferrari <fluca1978@gmail.com>)
Список pgsql-general
Thanks, it does!


On Sat, Oct 5, 2019 at 1:50 AM Luca Ferrari <fluca1978@gmail.com> wrote:
On Fri, Oct 4, 2019 at 10:38 PM Miles Elam <miles.elam@productops.com> wrote:
>
> The event trigger firing matrix lists tags like DROP TABLE and DROP FUNCTION are listed below the ddl_command_end event, but when I created a basic audit table and event trigger, they don't seem to fire. I know sql_drop exists, but again the matrix lists DROP commands in the ddl_command_end event.

Yes, I think this is a little misleading:
<https://www.postgresql.org/docs/11/event-trigger-matrix.html>.
The ddl_command_end is issued, and the function is invoked, but
pg_event_trigger_ddl_commands() returns NULL on such invocation
because sql_drop is the event with the attached data.

Hope this helps,
Luca

В списке pgsql-general по дате отправления:

Предыдущее
От: PegoraroF10
Дата:
Сообщение: Re: Performance on JSONB select
Следующее
От: Justin Pryzby
Дата:
Сообщение: v12 and pg_restore -f-