Re: Trigger execution role

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trigger execution role
Дата
Msg-id 1558725.1613152702@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Trigger execution role  (Isaac Morland <isaac.morland@gmail.com>)
Ответы Re: Trigger execution role  (Isaac Morland <isaac.morland@gmail.com>)
Список pgsql-hackers
Isaac Morland <isaac.morland@gmail.com> writes:
> I was trying to use triggers, and ran into something I hadn't realized
> until now: triggers run, not as the owner of the table, but as the user who
> is doing the insert/update/delete.

If you don't want that, you can make the trigger function SECURITY
DEFINER.  If we forced such behavior, there'd be no way to get the
other behavior.

            regards, tom lane



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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: WIP: WAL prefetch (another approach)
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: pg13.2: invalid memory alloc request size NNNN