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 1hy0cC-0005Vj-3o for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Aug 2019 21:15:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hy0c9-00011r-Hs for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Aug 2019 21:15:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hy0c9-00011i-92 for pgsql-hackers@lists.postgresql.org; Wed, 14 Aug 2019 21:15:25 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hy0c6-0007DS-Ed for pgsql-hackers@postgresql.org; Wed, 14 Aug 2019 21:15:24 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id B3ACB5F79F; Wed, 14 Aug 2019 17:15:20 -0400 (EDT) Date: Wed, 14 Aug 2019 17:15:20 -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: <20190814211520.GK16436@tamriel.snowman.net> References: <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> <20190806214355.GA29202@tamriel.snowman.net> <29770.1565810142@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IxJdV6DzbRx1uFDf" Content-Disposition: inline In-Reply-To: <29770.1565810142@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 --IxJdV6DzbRx1uFDf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > * Tom Lane (tgl@sss.pgh.pa.us) wrote: > >> Perhaps we could put some of these details into the Notes section of t= he > >> ALTER SYSTEM ref page. But I wonder how much of this is needed at all. >=20 > > 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). >=20 > In hopes of moving this along, I've pushed Ian's last code change, > as there seems to be no real argument about that anymore. >=20 > As for the doc changes, how about the attached revision of what > I wrote previously? It gives some passing mention to what ALTER > SYSTEM will do, without belaboring it or going into things that > are really implementation details. It's certainly better than what we have now. > As an example of the sort of implementation detail that I *don't* > want to document, I invite you to experiment with the difference > between > ALTER SYSTEM SET TimeZone =3D 'America/New_York'; > ALTER SYSTEM SET "TimeZone" =3D 'America/New_York'; Implementation details and file formats / acceptable transformations are naturally different things- a given implementation may sort things one way or another but if there's no requirement that the file be sorted then that's just fine and can be an implementation detail possibly based around how duplicates are dealt with. Thanks, Stephen --IxJdV6DzbRx1uFDf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdVHnoAAoJEO1sijiDR2RVijoQAIoylnbeKoRXeLbHF1pknFIR HIxCDFPPohQSpzWkoxRzRo1SMktAk7zDXNOnbADXvW8VZs/Dg25S52xhbTnCLwBV wdlFGt4qq5msym7gsKEc+th1Afn/FiI56909gTEaQlbqJXP3oXjzKWewAh/iNQoR lOB4OwSzZ2HE+Poimhk1fCJfTAiCbLF9lvVMripIoPGGm+FuZm83m8p9hOr7ey+9 76ppZyyrmLhCUVZ0hrGUFrugCXaXiBVB26NyoSSEDZJknXt1kY/PcSmsM1962JjE bT/dAAER7lOZAbOzGQxLkDJsJIVvRteMYh8S1qGDjTusb9xedXBMMBp2rHSkVYqP dveTkRGBLuSj+2Btwqfmu1psS21y1Cnz4PuVxlLcbUoF504QOoV424/gtuS3PliG AXxABE+0sflNLQ7eldrrnCR07er7thJfxit/C9wAU2qtAs7draTpck1A59ZGkMhV muSawDFshHr0nLP4B/xhSyXLGhPxoIO2W6W1vOWiiwMpkfab1nFXPEiNM6q9qvUn 06Jyl51JQJmKI8lEgprBxtYkM7+dk7GWS/Gz9QGvDt7qq9NxfzNden+5hokrhVYg JXJvE2k90G+4YrKKwoLxpuvwvPUg8wHQqnsr49aqC2rfxBB4ZLFsZLFPZqg/669o OQM5OxOdPM61nXdc2oTQ =Qntd -----END PGP SIGNATURE----- --IxJdV6DzbRx1uFDf--