Re: Restricting access to SHOW/SET - Mailing list pgsql-admin

From David G. Johnston
Subject Re: Restricting access to SHOW/SET
Date
Msg-id CAKFQuwbtjUgV0MPnRqqf0kpg3QsjGpCmB5=Nx8RFzemuJ=tUzw@mail.gmail.com
Whole thread Raw
In response to Restricting access to SHOW/SET  (Mats Julian Olsen <mats@plysjbyen.net>)
List pgsql-admin
On Wed, May 27, 2020 at 8:18 AM Mats Julian Olsen <mats@plysjbyen.net> wrote:
I want to restrict a user from using SHOW and SET commands, but after searching for hours I can't find a solution to this. What am I missing?

This cannot be done, and wouldn't be a complete solution even if it could.

The configuration of, and all object definitions in, the database are considered public knowledge in PostgreSQL.  Only table contents and the capability to execute functions/procedures are secured - either directly or, as a convenience method, by restricting access to the schema in which they are contained.

David J.

pgsql-admin by date:

Previous
From: Raj kumar
Date:
Subject: Understanding 'log_transaction_sample_rate'
Next
From: postgann2020 s
Date:
Subject: suggestion the process to sync the data from PROD DB to Staging environment