Re: Query a role's permission on a function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query a role's permission on a function
Дата
Msg-id 3362016.1638826227@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query a role's permission on a function  (Kevin Tu <kevintu888@gmail.com>)
Список pgsql-admin
Kevin Tu <kevintu888@gmail.com> writes:
> This sounds easy enough, but I can't quite figure out searching around. Can
> anybody please tell me which catalog table to query to find out whether a
> role/user has execute permission on a function?

I'd suggest using has_function_privilege() instead of trying to duplicate
the logic for yourself.

https://www.postgresql.org/docs/current/functions-info.html

            regards, tom lane



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

Предыдущее
От: Chandra Juthuga
Дата:
Сообщение: Re: Query a role's permission on a function
Следующее
От: Sivasamy Subramaniam
Дата:
Сообщение: Transaction Size in PostgreSQL