catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role - Mailing list pgsql-general

From Louis Lam
Subject catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role
Date
Msg-id 6D8540A29236624096E719740FC5C75306958919@guardium-01-ex.atlarge.net
Whole thread Raw
Responses Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role
List pgsql-general

 

Hi,

 

In PostgreSQL, there are some grant privileges like grant on SEQUENCE, DATABASE, LANGUAGE, SCHEMA and DATABASE.  I grant and revoke these privleges on my PostgreSQL on Windows and Linux OS.  But once it is granted, how do I find out what user and role are granted with these privileges?  I tried going through all the obvious view and system tables and looking for documentation on postgresql.com without any luck.

 

I used these three which are great for the rest of the privleges that I need to see in my database.

 

information_schema.table_privileges           --privilges grant on table/view

information_schema.routine_privileges        --prilviges grant on function

pg_roles                                                          --privilges granted on role.

 

If you know this, can you please respond to my post?  I would greatly appreciate any help.

 

Sincerely,

Louis Lam

Guardium, Inc.

 

pgsql-general by date:

Previous
From: Chris Browne
Date:
Subject: Re: Schema, databse, or tables in different system folder
Next
From: Geoffrey
Date:
Subject: warm standby with WAL shipping