Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions
Stephen Frost <sfrost@snowman.net>
From: Stephen Frost <sfrost@snowman.net>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>, Ian Barwick <ian.barwick@2ndquadrant.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-06-24T19:01:13Z
Lists: pgsql-hackers
* Robert Haas (robertmhaas@gmail.com) wrote: > On Sat, Jun 22, 2019 at 5:13 PM Stephen Frost <sfrost@snowman.net> wrote: > > All that said, whatever code it is that we write for pg_basebackup to do this properly should go into our client side library, so other tools can leverage that and avoid having to write it themselves. > > That is probably only going to help people who are writing in C (or > maybe some close family member) and a lot of tools for managing > PostgreSQL will be written in scripting languages. It is unlikely > that those people are going to get all of the rules for parsing a file > full of GUC settings exactly right, because translating flex into > Python is probably not anybody's idea of a fun time. So you'll end up > with a bunch of rewrite-postgresql.auto.conf tools written in > different languages at varying degrees of quality many of which will > misfire in corner cases where the GUC names contain funny characters > or the whitespace is off or there's unusual quoting involved. Calling into C functions from Python certainly isn't new, nor is it difficult to do from Perl, or various other languages, someone just needs to write the bindings. I'm not sure where the idea came from that someone would translate flex into Python, that's certainly not what I was suggesting at any point in this discussion. > If you just decreed that it was OK to append to the file, you could > avoid all that. As I said elsewhere on this thread, I have absolutely no problem with that as the documented approach to working with this file- but if that's what we're going to have be the documented approach, then everything should be using that approach... Thanks, Stephen
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