Re: Role members

From: Richard Huxton <dev(at)archonet(dot)com>
To: Akmal Akmalhojaev <akmal(dot)ilh(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Role members
Date: 2007-05-21 10:34:32
Message-ID: 465175B8.6090104@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general 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

In response to

  • Role members at 2007-05-21 10:21:52 from Akmal Akmalhojaev

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hannes Dorbath 2007-05-21 11:06:20 Re: TSearch2 memory usage
Previous Message Akmal Akmalhojaev 2007-05-21 10:21:52 Role members

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2007-05-21 11:18:27 Re: mb and ecpg regression tests
Previous Message Akmal Akmalhojaev 2007-05-21 10:21:52 Role members