Re: About groups in postgres

Поиск
Список
Период
Сортировка
Искать
От
Sean Chittenden
Тема
Re: About groups in postgres
Дата
Msg-id
20020221180627.A4271@ninja1.internal
Ответ на
Список
Дерево обсуждения
About groups in postgres Denis Chavez <dnchavez@gmx.net>
Re: About groups in postgres Sean Chittenden <sean@chittenden.org>
Backup and Recovery (revisited) Naomi Walker <nwalker@eldocomp.com>
Re: Backup and Recovery (revisited) Bruce Momjian <pgman@candle.pha.pa.us>
Re: Backup and Recovery (revisited) Bruce Momjian <pgman@candle.pha.pa.us>
> 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 по дате отправления
От: Peter Eisentraut
Дата:
От: Antony Stace
Дата:
FAQ