From: | Emi Lu <emilu(at)encs(dot)concordia(dot)ca> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: lists all users under groups |
Date: | 2006-01-16 19:50:51 |
Message-ID: | 43CBF91B.4040204@encs.concordia.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello,
By using -E to see the outputs, figure out a way by myself:
select distinct g.groname, u.usename from pg_catalog.pg_user u,
pg_catalog.pg_group g WHERE u.usesysid = ANY(g.grolist) order by
groname, usename;
Do you have a simpler way such as \d???
Thanks,
Emi
> Greetings,
>
> May I ask is there a simple way like \dg+ to get all users' names
> under all groups please? If no, which sys tables should I use to get it?
>
> I am expecting something like :
>
> Group name | Users
> ----------------------------------
> g1 | u1, u2, u3
> g2 | u1
> g3 | u6
>
> Thanks a lot!
> Emi
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew Schumacher | 2006-01-16 19:57:34 | Re: Rule system and unsucessful updates. |
Previous Message | Emi Lu | 2006-01-16 19:43:49 | lists all users under groups |