Re: permission to create user

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: permission to create user
Дата
Msg-id 20060718133103.GA41200@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: permission to create user  (Rafal Pietrak <rafal@zorro.isa-geek.com>)
Ответы Re: permission to create user  (Rafal Pietrak <rafal@zorro.isa-geek.com>)
Список pgsql-general
On Tue, Jul 18, 2006 at 01:45:01PM +0200, Rafal Pietrak wrote:
> Any one knows, why do I have to explicitly SET ROLE, when I try to
> exercise the group priviledge of role creation, while I don't need that
> when accessing tables? Is this a feature, or a bug?

http://www.postgresql.org/docs/8.1/interactive/role-membership.html

"The role attributes LOGIN, SUPERUSER, CREATEDB, and CREATEROLE can
be thought of as special privileges, but they are never inherited
as ordinary privileges on database objects are.  You must actually
SET ROLE to a specific role having one of these attributes in order
to make use of the attribute.  Continuing the above example, we
might well choose to grant CREATEDB and CREATEROLE to the admin
role.  Then a session connecting as role joe would not have these
privileges immediately, only after doing SET ROLE admin."

--
Michael Fuhr

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

Предыдущее
От: "Rhys Stewart"
Дата:
Сообщение: function taking a long time. any options o speed it up.
Следующее
От: "Werner Echezuria"
Дата:
Сообщение: Fuzzy Querys