Re: Possibility to disable `ALTER SYSTEM`
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: Daniel Gustafsson <daniel@yesql.se>,
Jelte Fennema-Nio <postgres@jeltef.nl>, Bruce Momjian <bruce@momjian.us>, Maciek Sakrejda <m.sakrejda@gmail.com>,
Tom Lane <tgl@sss.pgh.pa.us>, Joel Jacobson <joel@compiler.org>, Andrew Dunstan <andrew@dunslane.net>, Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-03-18T17:24:44Z
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 Mon, Mar 18, 2024 at 11:46 AM Magnus Hagander <magnus@hagander.net> wrote: > > Wouldn't that break pgBackrest which IIRC write to .auto.conf directly > > without using ALTER SYSTEM? > > Ugh of course. And not only that, it would also break pg_basebackup > which does the same. > > So I guess that's not a good idea. I guess nobody anticipated this > when that was done:) I'm also +1 for the idea that the feature should only disable ALTER SYSTEM, not postgresql.auto.conf. I can't really see any reason why it needs to do both, and it might be more convenient if it didn't. If you're managing PostgreSQL's configuration externally, you might find it convenient to write the configuration you're managing into postgresql.auto.conf. Or you might want to write it to postgresql.conf. Or you might want to do something more complicated with include directives or whatever. But there's no reason why you *couldn't* want to use postgresql.auto.conf, and on the other hand I don't see how anyone benefits from that file not being read. That just seems confusing. -- Robert Haas EDB: http://www.enterprisedb.com