Re: Role members - Mailing list pgsql-hackers

From Richard Huxton
Subject Re: Role members
Date
Msg-id 465175B8.6090104@archonet.com
Whole thread Raw
In response to Role members  ("Akmal Akmalhojaev" <akmal.ilh@gmail.com>)
List pgsql-hackers
Akmal Akmalhojaev wrote:
> Hello! I have the following question.
> 
> For example I have a role ID1 with members ID2 and ID3.
> Role ID2 has also members ID4 and ID5. It means that roles ID4 and ID5 are
> members of ID1.
> The question: Is there any function in PostgreSQL, that finds all the
> members of role ID1 - even such members, as ID4 and ID5.

Akmal, this isn't really a question for the hackers list. Please try on 
"general" or "admin".

However, I know of no function that will recursively expand member 
lists. You could easily write your own of course, but you'll want to 
decide how to handle the "inherits" flag.

--   Richard Huxton  Archonet Ltd


pgsql-hackers by date:

Previous
From: "Akmal Akmalhojaev"
Date:
Subject: Role members
Next
From: Magnus Hagander
Date:
Subject: Re: mb and ecpg regression tests