RE: retrieving user's groups - Mailing list pgsql-sql

From Michael Davis
Subject RE: retrieving user's groups
Date
Msg-id 01C08576.7D763D70.mdavis@sevainc.com
Whole thread Raw
In response to retrieving user's groups  (chard <chard@hindang.msuiit.edu.ph>)
List pgsql-sql
Here's a start:

select g.groname as group, g.grosysid as group_id, u.usename as user, 
u.usesysid as user_id from pg_group g, pg_user u        where u.usesysid = g.grolist[1] or u.usesysid = g.grolist[2] or

u.usesysid = g.grolist[3] or u.usesysid = g.grolist[4] or u.usesysid = 
g.grolist[5] or              u.usesysid = g.grolist[6] or u.usesysid = g.grolist[7] or 
u.usesysid = g.grolist[8] or u.usesysid = g.grolist[9] or u.usesysid = 
g.grolist[10]        order by groname, usename;


-----Original Message-----
From:    chard [SMTP:chard@hindang.msuiit.edu.ph]
Sent:    Tuesday, January 23, 2001 7:39 PM
To:    pgsql-sql@postgresql.org
Subject:    retrieving user's groups

hello,how will i retrieve group names of a certain user? using sql.

richard







pgsql-sql by date:

Previous
From: chard
Date:
Subject: retrieving user's groups
Next
From: Markus Wagner
Date:
Subject: #DELETED error when using Access 2000 as frontend