From: Sean Chittenden <sean@chittenden.org>
To: Denis Chavez <dnchavez@gmx.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: About groups in postgres
Date: Thu, 21 Feb 2002 18:06:27 -0800
Message-ID: <20020221180627.A4271@ninja1.internal> (raw)
In-Reply-To: <12952.1014322125@www32.gmx.net>
References: <12952.1014322125@www32.gmx.net>
> 1) Is there any way of asking postgres the groups a user account
> belongs to?
You can figure this out, but I don't know of a nice clean way of doing
it. Check out the pg_group table. There's got to be a 'value in
array' type function that could make that an easy select.
> 2) Let's suppose I have a user account that belongs to several
> groups, how can I tell postgres that I want access the database but
> just with the priviledges of one of the groups?
You don't want the intersection of permissions? I'd create a new user
account: I don't know that there's a way to rescind privs that have
been granted to you. -sc
--
Sean Chittenden
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: sean@chittenden.org, dnchavez@gmx.net
Subject: Re: About groups in postgres
In-Reply-To: <20020221180627.A4271@ninja1.internal>
References: <12952.1014322125@www32.gmx.net> <20020221180627.A4271@ninja1.internal>
* 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