| From: | Stephen Frost <sfrost(at)snowman(dot)net> |
|---|---|
| To: | Gaurav Tomar <gauravtomar14(at)gmail(dot)com> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Role information table name |
| Date: | 2020-07-08 17:54:02 |
| Message-ID: | 20200708175402.GL3125@tamriel.snowman.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Greetings,
* Gaurav Tomar (gauravtomar14(at)gmail(dot)com) wrote:
> Simple question -- in which table postgres store the role
> privilege information.
>
> CREATE ROLE postgres WITH
> LOGIN
> SUPERUSER
> INHERIT
> CREATEDB
> CREATEROLE
> REPLICATION;
>
> in which table I can find the above information.
While this is in pg_authid, if that's all the info you want to find out,
you should probably be getting it from pg_roles (which is a view over
pg_authid), since you need to be GRANT'd access to pg_authid unless
you're a superuser.
Thanks,
Stephen
| From | Date | Subject | |
|---|---|---|---|
| Next Message | J Lumby | 2020-07-20 14:44:25 | foreign key referencing inheritance parent |
| Previous Message | David G. Johnston | 2020-07-08 17:46:22 | Re: Role information table name |