Limiting user from changing its own attributes

From: Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com>
To: PostgreSQL General Discussion Forum <pgsql-general(at)postgresql(dot)org>
Subject: Limiting user from changing its own attributes
Date: 2015-04-10 16:01:25
Message-ID: CADp-Sm7GYyZZOYbqUBq22vzMxOhDvMrHdLb7OKYv4_hfVGKaHQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

In PostgreSQL a user can alter itself to change its user level parameters.
e.g. I can alter the user to change work_mem -

psql -U user1 -d postgres
postgres=# alter user user user1 set work_mem to '1024000';
ALTER ROLE
postgres=#

Is there a way I restrict this behavior? or atleast put a restriction on
the certain parameters e.g. work_mem to be not set to too high?

regards
Sameer

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2015-04-10 16:57:26 Re: Limiting user from changing its own attributes
Previous Message Melvin Davidson 2015-04-10 13:28:23 Re: no pg_hba.conf entry for replication connection from host