Re: How to find out about user rights

Поиск
Список
Период
Сортировка
От Sauer Annegret
Тема Re: How to find out about user rights
Дата
Msg-id EC0415F7C7C0894DAF52842323A2B30E0596F3CD@UHVEX01.verwaltung.uni-hohenheim.de
обсуждение исходный текст
Ответ на Re: How to find out about user rights  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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
toa 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

В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to find out about user rights
Следующее
От: Ennio-Sr
Дата:
Сообщение: pg-8.4: is it possible to recover not dumped data?