Re: BUG #1964: Role membership error
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #1964: Role membership error |
| Дата | |
| Msg-id | 9975.1129302791@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | BUG #1964: Role membership error ("Kevin Walker" <kwalker@ameritrade.com>) |
| Список | pgsql-bugs |
"Kevin Walker" <kwalker@ameritrade.com> writes:
> ERROR: role "dbadmin" is a member of role "kw"
> The message suggests that the login role "kw" is already a member of group
> role "dbadmin" which is not the case.
I think you are reading it backwards. You're probably accidentally
trying to set up circular role memberships, which isn't allowed.
Observe:
regression=# create role dbadmin;
CREATE ROLE
regression=# create role kw;
CREATE ROLE
regression=# grant kw to dbadmin;
GRANT ROLE
regression=# grant kw to dbadmin;
NOTICE: role "dbadmin" is already a member of role "kw"
GRANT ROLE
regression=# grant dbadmin to kw;
ERROR: role "dbadmin" is a member of role "kw"
Note that re-granting is only a NOTICE not an ERROR.
regards, tom lane
В списке pgsql-bugs по дате отправления: