Re: Granting permissions

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Granting permissions
Дата
Msg-id AFCCBB403D7E7A4581E48F20AF3E5DB2020DDD30@EXADV1.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: Granting permissions  (Ashish Karalkar <ashish_postgre@yahoo.co.in>)
Ответы Re: Granting permissions
Список pgsql-general
> I want to give only select,insert,update,delete permission on
> a particular database to a user. and aslso this user should
> not have any createdb permission.

I think that you get the concept wrong.

You cannot select from a database, you can only select from a
table (or view).

You probably mean 'select permissions for all tables in a database'.

There is no such thing.
Permissions are stored on the objects themselves, so a table
"knows" who is allowed to access it.

For what you want, you must give the user
a) permissions on all individual tables he/she should access
b) USAGE privilege on the Schemata
c) CONNECT privilege to the database.

Yours,
Laurenz Albe

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: All objects of a Particular USER
Следующее
От: Ashish Karalkar
Дата:
Сообщение: Re: Granting permissions