Re: About groups in postgres - Mailing list pgsql-admin

From Sean Chittenden
Subject Re: About groups in postgres
Date
Msg-id 20020221180627.A4271@ninja1.internal
Whole thread Raw
In response to About groups in postgres  (Denis Chavez <dnchavez@gmx.net>)
Responses Backup and Recovery (revisited)
List pgsql-admin
> 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

pgsql-admin by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: \connect case-folding change maybe not such a good idea
Next
From: Antony Stace
Date:
Subject: What does PGDG stand for in postgresql-7.2-1PGDG.rpm