has_schema_privilege function

Поиск
Список
Период
Сортировка
От dipti shah
Тема has_schema_privilege function
Дата
Msg-id d5b05a951003090053r13df0187u54273e631cb778fc@mail.gmail.com
обсуждение исходный текст
Список pgsql-novice
Hi,
 
I refered http://www.postgresql.org/docs/8.4/static/functions-info.html#FUNCTIONS-INFO-ACCESS-TABLE and got to know that I can fetch the information about permissions on schema.
 
Below commands work fine:
 
SELECT has_schema_privilege('user1', 'mydb', 'USAGE');
SELECT has_schema_privilege('user1', 'mydb', 'CREATE');
 
...But I want to check whether user has ALL permissions or not. Below doesn;t work.
 
SELECT has_schema_privilege('user1', 'mydb', 'ALL');
 
Do I have to check both USAGE and CREATE permissions to check ALL permissions?
 
Thanks.

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

Предыдущее
От: dipti shah
Дата:
Сообщение: How to save existing permissions on schema and later on restore it?
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: Entering a character code in a query