has_schema_privilege function - Mailing list pgsql-novice

From dipti shah
Subject has_schema_privilege function
Date
Msg-id d5b05a951003090053r13df0187u54273e631cb778fc@mail.gmail.com
Whole thread Raw
List 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 by date:

Previous
From: dipti shah
Date:
Subject: How to save existing permissions on schema and later on restore it?
Next
From: Jasen Betts
Date:
Subject: Re: Entering a character code in a query