Re: Revoke delete on a table for super user - Mailing list pgsql-admin

From Bryan Ward
Subject Re: Revoke delete on a table for super user
Date
Msg-id 557921E44EEBA849A3D17F95A63D16E2833A2795@GTEX1.globitech.com
Whole thread Raw
In response to Re: Revoke delete on a table for super user  (Ondřej Světlík <osvetlik@flexibee.eu>)
List pgsql-admin
I think your best bet is to create a role and assign the permissions that you want to that role/user. I would not
changethe anything on the superuser.
 

Regards,
Bryan

-----Original Message-----
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Ondrej Svetlík
Sent: Tuesday, August 02, 2016 3:28 PM
To: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Revoke delete on a table for super user

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


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

pgsql-admin by date:

Previous
From: Ondřej Světlík
Date:
Subject: Re: Revoke delete on a table for super user
Next
From: Ondřej Světlík
Date:
Subject: Re: Autovacuum of pg_shdepend