user privileges for particular table

Started by Thomas T. Thaiover 25 years ago2 messagesgeneral
Jump to latest
#1Thomas T. Thai
tom@minnesota.com

how can you show a user's privileges for a particular table of a
particular db?

select * from pg_user; doesn't do it

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Thomas T. Thai (#1)
Re: user privileges for particular table

"Thomas T. Thai" <tom@minnesota.com> writes:

how can you show a user's privileges for a particular table of a
particular db?

The info is in the relacl column of pg_class's row for that table. You
might also have to look at pg_group to determine whether the user is a
member of any groups that are granted privileges on the table.

regards, tom lane