Re: Possibility to disable `ALTER SYSTEM`
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Cc: pgsql-hackers@postgresql.org
Date: 2023-09-07T20:27:14Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add allow_alter_system GUC.
- d3ae2a24f265 17.0 landed
-
Rename COMPAT_OPTIONS_CLIENT to COMPAT_OPTIONS_OTHER.
- de7e96bd0fc6 17.0 landed
-
Remove support for version-0 calling conventions.
- 5ded4bd21403 10.0 cited
Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> writes: > I would like to propose a patch that allows administrators to disable > `ALTER SYSTEM` via either a runt-time option to pass to the Postgres server > process at startup (e.g. `--disable-alter-system=true`, false by default) > or a new GUC (or even both), without changing the current default method of > the server. ALTER SYSTEM is already heavily restricted. I don't think we need random kluges added to the permissions system. I especially don't believe in kluges to the effect of "superuser doesn't have all permissions anymore". If you nonetheless feel that that's a good idea for your use case, you can implement the restriction with an event trigger or the like. regards, tom lane