Michiel Lange wrote:
Would the same work for pg_user and pg_group?

See:
http://www.brasileiro.net:8080/postgres/cookbook/view-one-recipe.adp?recipe_id=11378

With these groups:
regression=# select * from pg_group;
 groname | grosysid |    grolist
---------+----------+---------------
 grp1    |      100 | {100,101,102}
 grp2    |      101 | {100,102}
(2 rows)

Output looks like:
regression=# select * from groupview;
 grosysid | groname | usesysid | usename
----------+---------+----------+---------
      100 | grp1    |      100 | user1
      100 | grp1    |      101 | user2
      100 | grp1    |      102 | user3
      101 | grp2    |      100 | user1
      101 | grp2    |      102 | user3
(5 rows)

Joe



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to