Re: Predefined Role - pg_write_all_data - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Predefined Role - pg_write_all_data
Date
Msg-id 354278ddf78e0160dccf96927213d6e5cac92d75.camel@cybertec.at
Whole thread Raw
In response to Predefined Role - pg_write_all_data  (Gambhir Singh <gambhir.singh05@gmail.com>)
List pgsql-admin
On Wed, 2023-10-25 at 20:30 +0530, Gambhir Singh wrote:
> Please help me to understand if we grant pg_write_all data role to some user then does
> that user get ability to do DML operations on system catalogs and system views.
>
> if yes then how we can restrict them.

Trying it out would have been less effort than writing this e-mail:

You are now connected to database "x" as user "postgres".
x=# GRANT pg_write_all_data TO laurenz;
GRANT ROLE
x=# SET SESSION AUTHORIZATION laurenz;
SET
x=> DELETE FROM pg_class;
ERROR:  permission denied for table pg_class

Yours,
Laurenz Albe



pgsql-admin by date:

Previous
From: Victor Sudakov
Date:
Subject: pgbouncer's default_pool_size and server limits
Next
From: Ron Watkins
Date:
Subject: GCP Postgres denied connection requests for user.