Re: How to list a role's permissions for a given relation?
В списке pgsql-general по дате отправления:
| От | Kynn Jones |
|---|---|
| Тема | Re: How to list a role's permissions for a given relation? |
| Дата | |
| Msg-id | c2350ba40910281334v6958de81me8527bb58e7b5575@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: How to list a role's permissions for a given relation? (Richard Huxton <dev@archonet.com>) |
| Список | pgsql-general |
Kynn Jones wrote:From psql use \dp <tablename>
> How can I list the permissions of a given user/role for a specific
> relation/view/index, etc.?
Using plain SQL, the closest I can think of are the has_xxx_privilege()
functions:
http://www.postgresql.org/docs/8.4/static/functions-info.html
There is also the standard information_schema views:
http://www.postgresql.org/docs/8.4/static/information-schema.html
e.g. table_privileges, column_privileges
Finally, there are the system-catalogues themselves:
http://www.postgresql.org/docs/8.4/static/catalogs.html
Look in pg_class for relacl - an array of table (and index) permissions.
Similarly pg_proc has proacl for functions.
--
Richard Huxton
Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера