Re: About groups in postgres

From: Sean Chittenden <sean(at)chittenden(dot)org>
To: Denis Chavez <dnchavez(at)gmx(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: About groups in postgres
Date: 2002-02-22 02:06:27
Message-ID: 20020221180627.A4271@ninja1.internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Antony Stace 2002-02-22 04:16:17 What does PGDG stand for in postgresql-7.2-1PGDG.rpm
Previous Message Peter Eisentraut 2002-02-22 01:21:57 Re: \connect case-folding change maybe not such a good idea