Re: Possibility to disable `ALTER SYSTEM`
Martín Marqués <martin.marques@gmail.com>
From: Martín Marqués <martin.marques@gmail.com>
To: Isaac Morland <isaac.morland@gmail.com>
Cc: Magnus Hagander <magnus@hagander.net>, Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>,
pgsql-hackers@postgresql.org
Date: 2023-09-12T12:33:56Z
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
Hi, > Maybe in addition to making "ALTER SYSTEM" throw an error, the feature that disables it should also disable reading postgresql.auto.conf? Maybe even delete it and make it an error if it is present on startup (maybe even warn if it shows up while the DB is running?). The outcome looked for is that the system GUCs that require a restart or reload are not modified unless it's through some orchestration or someone with physical access to the configuration files (yeah, we still have the COPY PROGRAM). We shouldn't mix this with not reading postgresql.auto.conf, or even worse, deleting it. I don't think it's a good idea to delete the file. Ignoring it might be of interest, but completely outside the scope of the intention I'm seeing from the k8s teams. > Counterpoint: maybe the idea is to disable ALTER SYSTEM but still use postgresql.auto.conf, maintained by an external program, to control the instance's behaviour. I believe that's the idea, although we have `include` and `include_dir` which can be used the same way as `postgresql.auto.conf` is automatically included. Kind regards, Martín -- Martín Marqués It’s not that I have something to hide, it’s that I have nothing I want you to see