Re: Allow database owners to CREATE EVENT TRIGGER

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Allow database owners to CREATE EVENT TRIGGER
Дата
Msg-id CAKFQuwZaW21Td4gK92wNYhFo4j7mxAA3XZjptzgcA3V=9xwZYw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Allow database owners to CREATE EVENT TRIGGER  (Aleksander Alekseev <aleksander@timescale.com>)
Ответы Re: Allow database owners to CREATE EVENT TRIGGER
Список pgsql-hackers
On Wednesday, March 5, 2025, Aleksander Alekseev <aleksander@timescale.com> wrote:
> Unlike superuser event triggers, which execute functions for every role, database owner event triggers are only executed for non-superusers.
 
All this doesn't strike me as a great UI.

Yeah. Seems better to make “execute_for” an attribute of the trigger and allow both superusers and non-superusers to create them.  Then enforce that non-superusers must specify the more limited value.

Though it would seem nice to be able to exclude the pseudo-admin roles these service providers create as well.

David J.

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