Re: grant question

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: grant question
Дата
Msg-id dcc563d10902281204q55c8c2bepc59bc757467dcf35@mail.gmail.com
обсуждение исходный текст
Ответ на grant question  ("Tena Sakai" <tsakai@gallo.ucsf.edu>)
Список pgsql-admin
On Sat, Feb 28, 2009 at 12:56 PM, Tena Sakai <tsakai@gallo.ucsf.edu> wrote:
> Hi Everybody,
>
> I want to issue a command:
>
>   grant select on schema_Z to user_a;
>
> so that the user_a can look at all tables in schema_Z.
> Sadly, what I get is:
>   ERROR:  relation "schema_Z" does not exist

Two problems.  1: you don't grant select on schemas, you grant it on
tables.  2: case folding.  If you're gonna use a name "schema_Z" then
you have to quote it, because it's mixed case, not all lower.

> I tried:
>
>   grant select on schema_Z.* to user_a;

Sorry no wildcarding on grant (At least not yet).  You need to grant
it for each table.  Note that instead of granting it to a user, you
should grant it to a role, then give membership to that role to the
user.

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Tena Sakai"
Дата:
Сообщение: grant question
Следующее
От: "Tena Sakai"
Дата:
Сообщение: Re: grant question