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 22:42:49
Message-ID: 20525.1243982569@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:
> Thank you very much for the quick response. That was very helpful. I
> was able to find the privilege on pg_language, pg_database and
> pg_tablespace. I am looking for privileges granted to SCHEMA and
> SEQUENCE. Do you by any change know what view or table I can queries to
> get privileges granted on these two?

pg_namespace, pg_class (sequences are just tables).

> Also when I did a select datacl from pg_database. The privilege column
> look like this. Do you know if there are some system function to decode
> this column? Or do I have to write code to interpret this myself?

Nope, there's no pretty-printer for it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Cheng 2009-06-02 23:22:51 Re: ubuntu 9.04 and auto-start
Previous Message Louis Lam 2009-06-02 22:18:32 Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role