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 1gReWO-0002YV-FO for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Nov 2018 14:39: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 1gReWN-0007e5-A6 for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Nov 2018 14:39:27 +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 1gReWM-0007da-Vs for pgsql-hackers@lists.postgresql.org; Tue, 27 Nov 2018 14:39:27 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gReWJ-0006as-Tv for pgsql-hackers@postgresql.org; Tue, 27 Nov 2018 14:39:25 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 51E7A5F7A6; Tue, 27 Nov 2018 09:39:23 -0500 (EST) Date: Tue, 27 Nov 2018 09:39:23 -0500 From: Stephen Frost To: Peter Eisentraut Cc: Sergei Kornilov , Michael Paquier , Postgres hackers Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf Message-ID: <20181127143923.GS3415@tamriel.snowman.net> References: <20181126151852.GW3415@tamriel.snowman.net> <29465041543250389@iva4-f774db2b5297.qloud-c.yandex.net> <20181126172118.GY3415@tamriel.snowman.net> <145311543257278@sas1-0a6c2e2b59d7.qloud-c.yandex.net> <20181126191253.GZ3415@tamriel.snowman.net> <457381543264217@iva5-84bc572481fe.qloud-c.yandex.net> <873d2d6b-8a85-2274-7222-abe2f0602f5d@2ndquadrant.com> <3206661543309827@sas2-b4ed770db137.qloud-c.yandex.net> <362e291f-2442-3bbf-62f5-dde97beb3940@2ndquadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Pi1ad4bzbEMsC2x1" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Pi1ad4bzbEMsC2x1 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Peter Eisentraut (peter.eisentraut@2ndquadrant.com) wrote: > On 27/11/2018 13:29, Peter Eisentraut wrote: > > On 27/11/2018 10:10, Sergei Kornilov wrote: > >>>> =A0- recovery_target =3D immediate was replaced with recovery_target= _immediate bool GUC > >>> > >>> Why? > >> Due this comment: https://www.postgresql.org/message-id/20181126172118= =2EGY3415%40tamriel.snowman.net > >>> I've not been following this very closely, but seems like > >>> recovery_target_string is a bad idea.. Why not just make that > >>> 'recovery_target_immediate' and make it a boolean? Having a GUC that's > >>> only got one valid value seems really odd. > >=20 > > It is a bit odd, but that's the way it's been, and I don't see a reason > > to change it as part of this fix. We are attempting to fix the way the > > GUC parameters are parsed, not change the name and meaning of the > > parameters themselves. I disagree quite a bit- we're whacking around how recovery works and this has been a wart since it went in because the contemplated later changes to have more than one value be accepted there never materialized, so we might as well change it while we're changing everything else and clean it up. If we really want to change it later we can do that, but we've evidently decided to go the opposite direction and have multiple GUCs instead, so let's be consistent. > The attached seems to be the simplest way to fix this. (Needs > documentation updates, test updates, error message refinement.) Sure, this approach seems fine to me and is perhaps a bit cleaner. Thanks! Stephen --Pi1ad4bzbEMsC2x1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJb/VcaAAoJEO1sijiDR2RVBWcQAI/ctlgJmtTZcdOI5Q8NRd5j BMgAAbxA06ANqL1oNH327Fy5U6AYGklJZoGwQtlfqP2qey2Ju4hZJn/TSlh6Ebnm WODQf9A5xosGGo1XmWFvnOVy1b+C0X3e8dSEe/Bso6OrKqqSRjFzjGLZ+WWyIjpd 6bqN6lHlApw5EC9sDKm66ZBpLHgUB4SQjKv6snJM7EWTkKOGSmbAZZDypQiCiSRD ScARpQ/G2zBGprIFWNmerLlWlN/RefLyhVzBXEByUPcEO6TImuqOfKjqMguKuLB0 iXJI7wAz0Zvs/VthTnbsBVzaAjhUeuK4vzqq9TfwEpv5c9fpgxh3ooHt3ElT+Dgu +sYHgFn6DPvkd8a/NX/b/B6DumvUDBIPaUG/mERWNAZcw2pf5Q0eLGhRdq/nDjVi 4C9IbQl9fPFbk45MXst4yWR535+CG2RrA1uVEAUVM5rNDDvLBOP2YlQi0SxhtDqs 0/eE4bUeG+gDJFLvkE9atZKjNY8wwXyn6/jyhYsVMxJKX0jcPUrdqjG91Q3qWQoy Rp6VQ+kBB+BjPhySO8fIwGUSU4J4Q0hAd08ylSXAz7D3x13FcX0yd41+Rf74AqbQ 5tpyTKE7X5hTFCql3moBfMHBtbgQLoM+6yOfxe80yIHpz9g6wsKDHXAb8D44x4UF qj8+dHCxKzMJFUd8Xyia =/UdX -----END PGP SIGNATURE----- --Pi1ad4bzbEMsC2x1--