User Privileges

Поиск
Список
Период
Сортировка
От Niral Trivedi
Тема User Privileges
Дата
Msg-id 328DC4EC2C9B74428D8DAED1931285BF10D987@FLAN-EXCH01.corp.insage.com
обсуждение исходный текст
Список pgsql-general
All,

How can you grant privileges to a user to all tables in database?

For example I have 5 tables in database A. And now I want to give
SELECT/UPDATE/INSERT privileges to a user to all 5 tables. But according to
documentation, I have to execute 'GRANT' query 3 times(for
select/update/insert) per table. meaning total of 15 times!!!!

Is there any way I can do that in just one shot?

Basically I want to give user privileges to all tables in databse at once.
Like we can do in MySQL by adding a user in 'db' and 'user' table.

Is it possible in PostgreSQL? How?

Thanks in advance..

Niral

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

Предыдущее
От: Anand Raman
Дата:
Сообщение: Re: How I can join between the other database's tables?
Следующее
От: eriko
Дата:
Сообщение: Tuning Database