Re: Revoke delete on a table for super user

From: Ondřej Světlík <osvetlik(at)flexibee(dot)eu>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Revoke delete on a table for super user
Date: 2016-08-02 20:27:43
Message-ID: 997e138a-f05d-4f30-3bcc-85459ef7c898@flexibee.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Dne 2.8.2016 v 19:27 Tom Lane napsal(a):
> "Campbell, Lance" <lance(at)illinois(dot)edu> 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bryan Ward 2016-08-02 20:52:43 Re: Revoke delete on a table for super user
Previous Message Tom Lane 2016-08-02 17:27:08 Re: Revoke delete on a table for super user