Re: DEFINER / INVOKER conundrum

Поиск
Список
Период
Сортировка
От Christoph Moench-Tegeder
Тема Re: DEFINER / INVOKER conundrum
Дата
Msg-id ZCrNl0h+5vS/m9Nc@squirrel.exwg.net
обсуждение исходный текст
Ответ на DEFINER / INVOKER conundrum  (Dominique Devienne <ddevienne@gmail.com>)
Список pgsql-general
## Dominique Devienne (ddevienne@gmail.com):

> On the one hand, I want a INVOKER security function,
> to be able to capture the login and current ROLEs.

There's session_user ("the session user's name") which remains unchanged
on a SECURITY DEFINER function, and current_user ("the user name of the
current execution context") which changes according to the security
context set by SECURITY DEFINER/INVOKER.
-> https://www.postgresql.org/docs/current/functions-info.html

Regards,
Christoph

-- 
Spare Space.



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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Very slow queries followed by checkpointer process killed with signal 9
Следующее
От: Christoph Moench-Tegeder
Дата:
Сообщение: Re: Very slow queries followed by checkpointer process killed with signal 9