Re: Granting Privileges in Postgres

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Granting Privileges in Postgres
Дата
Msg-id 4E3F6E31.2070706@hogranch.com
обсуждение исходный текст
Ответ на Granting Privileges in Postgres  (Adarsh Sharma <adarsh.sharma@orkash.com>)
Список pgsql-general
On 08/07/11 9:58 PM, Adarsh Sharma wrote:
> Dear all,
>
> Today I researched on giving privileges in Postgres databases. I have
> 4 databases and near about 150 tables, 50-60 sequences and also some
> views in it.
>
> I want to give privileges to a new user in all these objects. I
> created a function for that but don't know how to give privileges on
> all objects all at once.

GRANT ALL ON ALL TABLES IN SCHEMA schema_name TO rolename;

this ON ALL TABLE IN SCHEMA option is new in 9.0



--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


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

Предыдущее
От: Adarsh Sharma
Дата:
Сообщение: Granting Privileges in Postgres
Следующее
От: - -
Дата:
Сообщение: Re: Query with rightmost function does not use index