Re: Revoke delete on a table for super user

Поиск
Список
Период
Сортировка
Искать
От
Ondřej Světlík
Тема
Re: Revoke delete on a table for super user
Дата
Msg-id
997e138a-f05d-4f30-3bcc-85459ef7c898@flexibee.eu
Ответ на
Список
Дерево обсуждения
Revoke delete on a table for super user "Campbell, Lance" <lance@illinois.edu>
Re: Revoke delete on a table for super user Tom Lane <tgl@sss.pgh.pa.us>
Re: Revoke delete on a table for super user Ondřej Světlík <osvetlik@flexibee.eu>
Re: Revoke delete on a table for super user Bryan Ward <bward@globitech.com>
Dne 2.8.2016 v 19:27 Tom Lane napsal(a):
> "Campbell, Lance"  writes:
>> Is there a way to revoke the ability to perform delete on a table for a user that is a super user?
>
> No.  Superusers bypass all access controls, by definition.  Your best bet
> is to not do more than you absolutely must as a superuser.
>
> 			regards, tom lane
>
>

I guess you could achieve this using a trigger.

Regards,

Ondřej

В списке pgsql-admin по дате отправления
От: Tom Lane
Дата:
От: Bryan Ward
Дата:
FAQ