Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hv7FR-00027z-35 for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Aug 2019 21:44:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hv7FP-0007OP-HW for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Aug 2019 21:43:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hv7FP-0007Lu-3R for pgsql-hackers@lists.postgresql.org; Tue, 06 Aug 2019 21:43:59 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1hv7FL-0006BJ-7Y for pgsql-hackers@postgresql.org; Tue, 06 Aug 2019 21:43:57 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 990CF5F79F; Tue, 6 Aug 2019 17:43:55 -0400 (EDT) Date: Tue, 6 Aug 2019 17:43:55 -0400 From: Stephen Frost To: Tom Lane Cc: Ian Barwick , Robert Haas , Tomas Vondra , Amit Kapila , "pgsql-hackers@postgresql.org" Subject: Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions Message-ID: <20190806214355.GA29202@tamriel.snowman.net> References: <30179.1565029753@sss.pgh.pa.us> <30823.1565030571@sss.pgh.pa.us> <32103.1565032053@sss.pgh.pa.us> <20190806005225.GM29202@tamriel.snowman.net> <6cba0dff-485b-6781-d659-0a376b966c89@2ndquadrant.com> <20190806021616.GP29202@tamriel.snowman.net> <54620b18-60b7-4b9b-7d1d-90a6464ab333@2ndquadrant.com> <5879.1565121423@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GgBh91wBqw8XMHKv" Content-Disposition: inline In-Reply-To: <5879.1565121423@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --GgBh91wBqw8XMHKv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Ian Barwick writes: > >>> I dislike the special-casing of ALTER SYSTEM here, where we're basica= lly > >>> saying that only ALTER SYSTEM is allowed to do this cleanup and that = if > >>> such cleanup is wanted then ALTER SYSTEM must be run. >=20 > > This is just saying what ALTER SYSTEM will do, which IMHO we should des= cribe > > somewhere. Initially when I stated working with pg.auto.conf I had > > my application append a comment line to show where the entries came fro= m, > > but not having any idea how pg.auto.conf was modified at that point, I = was > > wondering why the comment subsequently disappeared. Perusing the source= code has > > explained that for me, but would be mighty useful to document that. >=20 > I feel fairly resistant to making the config.sgml explanation much longer > than what I wrote. That chapter is material that every Postgres DBA has > to absorb, so we should *not* be burdening it with stuff that few people > need to know. Sure, I agree with that. > Perhaps we could put some of these details into the Notes section of the > ALTER SYSTEM ref page. But I wonder how much of this is needed at all. I'd be alright with that too, but I'd be just as fine with even a README or something that we feel other hackers and external tool developers would be likely to find. I agree that all of this isn't something that your run-of-the-mill DBA needs to know, but they are things that I'm sure external tool authors will care about (including myself, David S, probably the other backup/restore tool maintainers, and at least the author of pg_conftool, presumably). Of course, for my 2c anyway, the "low level backup API" is in the same realm as this stuff (though it's missing important things like "what magic exit code do you return from archive command to make PG give up instead of retry"...) and we've got a whole ton of text in our docs about that. Thanks, Stephen --GgBh91wBqw8XMHKv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdSfSbAAoJEO1sijiDR2RVeIYP/jpChBj8fslarTFqsRajLHx5 j5SfG7f6A6MKsAO2kc9020m08o98MlgHRmtpEjQHmapbvEzfvv2NtpeiUYdXY4PW u/EaNOMQO3Isb1vxNnOTN5AmRqn2lpWPmiOrLIRcTa/J77iDJD5e+zqO3lIJypiX A1ZpK1pGUMO56vALhk6O9oM3XxHWKKmopfI6j56gF5vQLTlcTOd639crodxES398 3jXWkCx0Hcy2JpMY9gK4PU7rt1/OJfe9uNXdhkaZpxOy0oC6wH5o8ToR6H+t4f7T +rra+hse0MRVnoflSmBNAGeUNnMODrXbJpBLCslO1CmnjpcxWnTQEtxoTLAjFw78 GfhPu9X77y9BqlO0ehasHFA7Lu7dl8npTaj9XQrQnEcqap/bLZbJDcRphCdHtDS7 JG0BvhN5KJD82fu/93AnELBvHKtqwszmc/f8cr6xkGlHIPNyz3OUZ74GoStcrOr4 uWsNeXps/2etBKs53L3DkhcYxotKSInw4uKwVk+xdOw16tz0wHFvGqnWmy2xiHZQ cOm3jPmte0r8eCNlfE3jv8NTOZHXKqgj8szAnXQPE9ZZ9feBCfV6KnqhC47M7hxK pz2gtbnZP4211N1yDX9Erlpggmn26TaoInbTwKfsU2SDv8ypNmGLN7cqWI2bnwia ATsnXb0SZrwly2R0dwR1 =lngO -----END PGP SIGNATURE----- --GgBh91wBqw8XMHKv--