Re: Event trigger and CREATE/ALTER ROLE/USER

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Event trigger and CREATE/ALTER ROLE/USER
Дата
Msg-id 20160914014247.GA440644@alvherre.pgsql
обсуждение исходный текст
Ответ на Event trigger and CREATE/ALTER ROLE/USER  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Ответы Re: Event trigger and CREATE/ALTER ROLE/USER  (Craig Ringer <craig.ringer@2ndquadrant.com>)
Re: Event trigger and CREATE/ALTER ROLE/USER  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Список pgsql-hackers
Tatsuo Ishii wrote:
> Simple question: Is there any reason for event trigger to not support
> CREATE/ALTER ROLE/USER?

As I understand the issue, the main reason is that event triggers
execute procedures, and those exist in a single database only.  If you
were to create an event trigger in database A, then a user gets created
in database B, your function would not be invoked, which becomes a
problem.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: DISABLE_PAGE_SKIPPING option for vacuumdb
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Event trigger and CREATE/ALTER ROLE/USER