Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Ian Barwick <ian.barwick@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Stephen Frost <sfrost@snowman.net>, Amit Kapila <amit.kapila16@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-08-02T23:24:30Z
Lists: pgsql-hackers
Hi, On 2019-08-03 08:22:29 +0900, Ian Barwick wrote: > What I came up with shoehorned a stripped-down version of the backend > config parser into fe_utils and provides a function to modify pg.auto.conf > in much the same way ALTER SYSTEM does, but with only the basic syntax > checking provided by the parser of course. And for completeness a > client utility which can be called by scripts etc. > I can clean it up and submit it later for reference (got distracted by other things > recently) though I don't think it's a particularly good solution due to the > lack of actual checks for the provided GUCSs (and the implementation > is ugly anyway); something like what Andres suggests below would be far better. I think my main problem with that is that it duplicates a nontrivial amount of code. Greetings, Andres Freund
Commits
-
Doc: improve documentation about postgresql.auto.conf.
- e3ddb112f245 10.11 landed
- 7f77f2aec3d0 11.6 landed
- 57980bdf62f4 9.4.25 landed
- 45aaaa42fefa 13.0 landed
- 372d6a8918e0 12.0 landed
- 1ab92aaa97ce 9.5.20 landed
- 0969a7aa3240 9.6.16 landed
-
Fix ALTER SYSTEM to cope with duplicate entries in postgresql.auto.conf.
- f1bf619acdff 13.0 landed
- f8c9a08520ee 10.11 landed
- a4b0d955bd23 9.4.25 landed
- 75b2f011f642 12.0 landed
- 4784ad7a370e 9.6.16 landed
- 32d38f54a369 11.6 landed
- 29f9b1819a72 9.5.20 landed