postgres how to revoke set command

Viewed 123

Is it possible for a user to not be able to run set commands to change work_mem etc? Certain users are setting work_mem and parallel sessions to high values impacting other sessions, would like to disable/revoke set from users, please let me know.

2 Answers

No, this cannot be done. For that reason, don't give untrusted users the opportunity to run arbitrary SQL statements.

Related