Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Louis Lam" <louis(dot)lam(at)guardium(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role
Date: 2009-06-02 20:12:18
Message-ID: 17822.1243973538@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Louis Lam" <louis(dot)lam(at)guardium(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-06-02 20:15:32 Re: Really out of memory?
Previous Message Geoffrey 2009-06-02 19:47:39 Re: warm standby with WAL shipping