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

From Tom Lane
Subject Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role
Date
Msg-id 17822.1243973538@sss.pgh.pa.us
Whole thread Raw
In response to catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role  ("Louis Lam" <louis.lam@guardium.com>)
Responses Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role
List pgsql-general
"Louis Lam" <louis.lam@guardium.com> writes:
> 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?

It's stored in the various "acl" columns of the system catalogs, which
you can look at either directly or via psql's \d commands.  See the
GRANT reference page for an example and a discussion of how to read
the entries.

            regards, tom lane

pgsql-general by date:

Previous
From: Geoffrey
Date:
Subject: Re: warm standby with WAL shipping
Next
From: Tom Lane
Date:
Subject: Re: Really out of memory?