Re: grant permissions

Поиск
Список
Период
Сортировка
От ryan
Тема Re: grant permissions
Дата
Msg-id 399873D7.86F712AF@bel.bc.ca
обсуждение исходный текст
Ответ на grant permissions  ("jeff seaman" <jseaman@pharsalia.com>)
Список pgsql-general
jeff seaman wrote:
>
> Hello,
>
> Is there an sql command that I can use to grant update/query privledges for
> an entire database  instead of on a table by table basis.


Now this is just off the top of my head, but the general way to do this
is to create a role, grant the role access to whatever objects you're
talking about, then grant the role to indivduals.

Now, postgres does things differently, so instead you create a group,
add users to the group and then grant privlidges on objects to that
group. that way users inherit the privlidges of that group they are
in... you remove them from the group, they lose their privlidges.

Now im not sure which is the superior way, in a way it doesnt matter
since they are functionally equivalent, and i suspect the group
mechanism is more efficient, plus i dont think create role is SQL92
anyways. maybe its sql3? bah, im dont read standards (that often ;-)

Hope this helps.

-ryan

--
Ryan Rawson
System Administrator
Binary Environments Ltd.
ryan@bel.bc.ca

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

Предыдущее
От: "Bryan White"
Дата:
Сообщение: Re: Great Bridge benchmark results for Postgres, 4 others
Следующее
От: "Steve Wolfe"
Дата:
Сообщение: Re: Great Bridge benchmark results for Postgres, 4 others