From: Jacopo Silva <jsilva@lynxtesoft.it>
To: pgsql-admin@postgresql.org
Subject: is a user in a group?
Date: Fri, 10 Nov 2000 15:28:10 +0100
Message-ID: <002e01c04b22$89e177c0$3d01a8c0@sede.lynxtesoft.it> (raw)
I need to find out a quick way to check which groups a user
is member of.
In the pg_group table each group row has an array of
userids of the members of the group.
At the moment I am selecting all the rows than
searching in each array for the id of the user
I am looking for.
There should be something more elegant than this!!!
There should be a system table which I can use to find
the relation between user and groups.
I would be very grateful to anyone who can help me:-).
Bye,
Jacopo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jsilva@lynxtesoft.it
Subject: Re: is a user in a group?
In-Reply-To: <002e01c04b22$89e177c0$3d01a8c0@sede.lynxtesoft.it>
References: <002e01c04b22$89e177c0$3d01a8c0@sede.lynxtesoft.it>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox