"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