Re: pg_user, changing priviliges

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: pg_user, changing priviliges
Дата
Msg-id 20001026100818.A29490@rice.edu
обсуждение исходный текст
Ответ на pg_user, changing priviliges  (Marcin Mazurek <M.Mazurek@poznan.multinet.pl>)
Список pgsql-admin
On Thu, Oct 26, 2000 at 08:24:56AM +0200, Marcin Mazurek wrote:
> I'm trying to give a createuser privilige by changing pg_users, i'm logged
> in as a superuser.
>
>
> Why I can't do it?
>

reedstrm=> \d pg_user
View    = pg_user
...

Because pg_user is a view on pg_shadow. Can't update a view. The right
way to go about adding createuser privilage to a user is:

ALTER USER foouser CREATEUSER;

Ross

--
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005

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

Предыдущее
От: Marcin Mazurek
Дата:
Сообщение: pg_user, changing priviliges
Следующее
От: Michel Decima
Дата:
Сообщение: possible bug in CREATE FUNCTION