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>)
Ответы Backup and Recovery (revisited)  (Naomi Walker <nwalker@eldocomp.com>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: \connect case-folding change maybe not such a good idea
Следующее
От: Antony Stace
Дата:
Сообщение: What does PGDG stand for in postgresql-7.2-1PGDG.rpm