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 1hugm4-0003ca-2d for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Aug 2019 17:27:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hugm2-0005FU-VL for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Aug 2019 17:27:54 +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 1hugir-0003gg-4R for pgsql-hackers@lists.postgresql.org; Mon, 05 Aug 2019 17:24:37 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hugin-0008Ok-Us for pgsql-hackers@postgresql.org; Mon, 05 Aug 2019 17:24:35 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id E35CF5F79F; Mon, 5 Aug 2019 13:24:32 -0400 (EDT) Date: Mon, 5 Aug 2019 13:24:32 -0400 From: Stephen Frost To: Tom Lane Cc: Robert Haas , David Fetter , Ian Barwick , Tomas Vondra , Andres Freund , Amit Kapila , "pgsql-hackers@postgresql.org" Subject: Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions Message-ID: <20190805172432.GJ29202@tamriel.snowman.net> References: <20190803004558.jfkbngi6g64eaqku@alap3.anarazel.de> <20190803010802.rs3cz2kjq4dl4olu@alap3.anarazel.de> <20190803124111.2aaddumd7url5wmq@development> <16320.1564851579@sss.pgh.pa.us> <20190805162203.GR31493@fetter.org> <4768.1565022305@sss.pgh.pa.us> <5739.1565023404@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LtBsfM+wi59OC/zR" Content-Disposition: inline In-Reply-To: <5739.1565023404@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 --LtBsfM+wi59OC/zR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Robert Haas writes: > > On Mon, Aug 5, 2019 at 12:25 PM Tom Lane wrote: > >> Perhaps as a future improvement, but it's not happening for v12, > >> at least not unless you accept "use ALTER SYSTEM in a standalone > >> backend" as a usable answer. >=20 > > I'm not sure that would even work for the cases at issue ... because > > we're talking about setting up recovery parameters, and wouldn't the > > server run recovery before it got around to do anything with ALTER > > SYSTEM? >=20 > Yeah, good point. There are a lot of other cases where you really > don't want system startup to happen, too. On the other hand, > people have also opined that they want full error checking on > the inserted values, and that seems out of reach with less than > a full running system (mumble extensions mumble). There have been ideas brought up about some way to provide "full validation" but I, at least, don't recall seeing anyone actually say that they *want* that- just different people suggesting that it could be done. I agree that full validation is a pipe dream for this kind of system and isn't what I was intending to suggest at any point. > In the end, I think I don't buy Stephen's argument that there should > be a one-size-fits-all answer. It seems entirely reasonable that > we'll have more than one way to do it, because the constraints are > different depending on what use-case you think about. This doesn't seem to me, at least, to be an accurate representation of my thoughts on this- there could be 15 different ways to modify the file, but let's have a common set of code to provide those ways instead of different code between the backend ALTER SYSTEM and the frontend pg_basebackup (and if we put it in the common library that we already have for sharing code between the backend and the frontend, and which we make available for external tools, then those external tools could use those methods in the same way that we do). I'm happy to be told I'm wrong, but as far as I know, there's nothing in appending to the file or removing duplicates that actually requires validation of the values which are included in order to apply those operations correctly. I'm sure I'll be told again about how we can't do this for 12, and I do appreciate that, but it's because we ignored these issues during development that we're here and that's really just not something that's acceptable in my view- we shouldn't be pushing features which have known issues that we then have to fight about how to fix it at the last minute and with the constraint that we can't make any big changes. Thanks, Stephen --LtBsfM+wi59OC/zR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdSGZQAAoJEO1sijiDR2RVFcEP/25Y/3d8S1wteD4jBbc5BZhh j0/T5czdPeDJi3Orc3hw92j9upDuJVjO5UYIJVx0NW3wloDXYHZxXkrGiI1xYaE2 Ddak/x0H6VwvLsJAJiieUzXMMvho6/2ZZbF/3wgvr9mK6JJCYQ7LO4e1BqnZDQ4Q cl0QfztX1XhZsKmzHoyxyCrCf1gclP9RbnKlQjAYnlCRRcerLjfsYTzLPg6QDBgm 3CVuqPGgfxoxI1a84Fr2Iammdapf4K8pnkp7GoXeHiLLXuFr0De2NulGJlWpeAxB FwBiPuVirhCBTlIa147hLOk4vvEUn2j5opYiaNOy3ksoWbikXiT9sVC07hTcJzOc j9tXsUeXOTNvUMdzyra/VOmTYUYjknaJKT/Dc5fcJQAQVrSNXrI3GCStlZlhPMwP aDyVe2KyvfA22EUqRUC0wnvU2MZOwXRayJ4D/FOef2NwoR3C0BwCgRww5lzZfx43 ef6L1/QJseWezPp4g35zCnkrDQo7FhTKQtGWM44RdfbdHBduhsrO7IcOwmot3XrB tjDCTJTJh3RXrcEz329R23y1dB1PAeBg+4faR0wYapoM9npkI5q0gwl1dE6yNVd6 SzKL4qfdy73xbr47MMMt7CuIKF+fiiYcDd0v4KK0skXZlo51wADm5xL4THfjkUKj 9bjfkGL0hLhHbc+U13mc =Y3zC -----END PGP SIGNATURE----- --LtBsfM+wi59OC/zR--