Re: Possibility to disable `ALTER SYSTEM`
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Martín Marqués <martin.marques@gmail.com>, Isaac Morland <isaac.morland@gmail.com>, Magnus Hagander <magnus@hagander.net>, Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>, pgsql-hackers@postgresql.org
Date: 2024-02-01T15:27: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
On Thu, Feb 1, 2024 at 7:33 AM Bruce Momjian <bruce@momjian.us> wrote: > On Tue, Jan 30, 2024 at 04:25:12PM -0500, Robert Haas wrote: > > I don't think we should pretend like one of the two paragraphs above > > is valid and the other is hot garbage. That's not solving anything. We > > can't resolve the tension between those two things in either direction > > by somebody hammering on the side of the argument that they believe to > > be correct and ignoring the other one. > > What if we generate log messages when certain commands are used, like > ALTER TABLE? We could have GUC which controls which commands are > logged. Well, as I understand it, that doesn't solve the problem here. The problem some people want to solve here seems to be: On my system, the PostgreSQL configuration parameters are being managed by $EXTERNAL_TOOL. Therefore, they should not be managed by PostgreSQL itself. Therefore, if someone uses ALTER SYSTEM, they've made a mistake, so we should give them an ERROR telling them that, like: ERROR: you're supposed to update the configuration via k8s, not ALTER SYSTEM, you dummy! DETAIL: Stop being an idiot. The exact message text might need some wordsmithing. :-) -- Robert Haas EDB: http://www.enterprisedb.com