Re: Just View create privilege to user user2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Just View create privilege to user user2
Дата
Msg-id 3033056.1683156531@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Just View create privilege to user user2  (M Sarwar <sarwarmd02@outlook.com>)
Ответы Re: Just View create privilege to user user2  (M Sarwar <sarwarmd02@outlook.com>)
Список pgsql-admin
M Sarwar <sarwarmd02@outlook.com> writes:
> I want user u2 to have only CREATE VIEW privilege in schema s2. I do not want u2 to create any other type of objects
ins2 schema. 
> I am unable to find the command to grant just   CREATE VIEW privilege  to be granted to u2.

There is no such privilege, and we're quite unlikely to invent one,
because it would be outside the SQL standard's privilege model.

You could probably enforce a requirement like this with a custom
event trigger.  But I'd encourage you to rethink why you think this
is a good idea.

            regards, tom lane



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

Предыдущее
От: M Sarwar
Дата:
Сообщение: Just View create privilege to user user2
Следующее
От: M Sarwar
Дата:
Сообщение: Re: Just View create privilege to user user2