| From: | Sauer Annegret <sauer(at)Verwaltung(dot)uni-hohenheim(dot)de> |
|---|---|
| To: | "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org> |
| Subject: | Re: How to find out about user rights |
| Date: | 2012-11-08 16:30:29 |
| Message-ID: | EC0415F7C7C0894DAF52842323A2B30E0596F3CD@UHVEX01.verwaltung.uni-hohenheim.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
Hi Tom,
> You could look into the information_schema views, or you could write a query using the has_table_privilege() function.
Could you give an example for such a query? So far I have never heard of this function.
>> Or - another question - how could you possibly copy the rights of a certain user and assign them to another user?
> There's no mechanism for doing that. Usually the recommended solution for "sharing" rights is to assign the rights to a role created for the
> purpose, and then to grant use of that role to the individual users.
> However this approach requires a bit of foresight ...
... which my predecessors didn't have...
I think I might try the has_table_privilege() function. Thanks!
Annegret
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeff Davis | 2012-11-09 01:59:02 | Re: pg-8.4: is it possible to recover not dumped data? |
| Previous Message | Ennio-Sr | 2012-11-08 16:26:51 | pg-8.4: is it possible to recover not dumped data? |