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 1gcKHD-0008OH-77 for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Dec 2018 01:15:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gcKHB-00015I-MM for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Dec 2018 01:15:53 +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 1gcKHB-00015A-7b for pgsql-hackers@lists.postgresql.org; Thu, 27 Dec 2018 01:15:53 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcKH4-0003Zb-Ja for pgsql-hackers@postgresql.org; Thu, 27 Dec 2018 01:15:52 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C637321DEC; Wed, 26 Dec 2018 20:15:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 26 Dec 2018 20:15:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=CCrbUMt70QGJcDcL2QvZVKi3BQO YIbSQjfwYoQ94VUg=; b=IMjHrEDok2ju6hOxKXaBGmZqqVoyZFK6FdETHef5GQ0 SPGZM6XMCLRPvjcsuXFdJsZA4L64I859l4+wXECmtuHcuMCiUuxJWeTScibpAlw1 QlwYmwTUawYgXrhx71rV6aWPENJk+Zk9Tj9tr5tpAgQDbIN0ujufL+GNxhH0S60Q Ifve0M9FdzrzKTrTsYHEW8CByKB0SnB8uwuoM/q21l7ovaKcljB4HFJi5bn/HdUu 2YcBcgnuydBnqdPj0YVqZmr2qUf2l+ne7+uGz92MYVEAt7HZX48+yiXwMrKFsuq4 TEluzDf/esDgXOfzddoh5iCifZaOLiyPN9f6WPtC9NQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=CCrbUM t70QGJcDcL2QvZVKi3BQOYIbSQjfwYoQ94VUg=; b=pV+ihmD71qflyv+pv+7lpD 7WAYTOk20iyepXUXB+hje8oh/RjsbzoNUnvbDCKmQJdMAkADsyraOHmEGPsddWsZ MbyUooWHm/wIsX0dMdek8DB58CF70r+e8S+VObsC5x3eZUa4cZd2Mm4tArIZN3mv fFUWlSdveaiPXMMyVlyZNPixDxPlg7Kjz2hV2vehNnXy+xvItIUNsET8K16FYBqx hTC/Pdx18feZjzYsJ21FWrzvri98LJZammP4cWGOjgpaGfFiMHcdKX9tEjJXDWyg MegCwkc3CEeTL1EnP2U8sPr6oByhE+GO13bSG5hgHUjIl44NhytFBSmsyI72HBbQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrtddugdeffeculddtuddrgedtkedrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepiedurddvudehrddufeejrdduiedvnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id AD647E4597; Wed, 26 Dec 2018 20:15:42 -0500 (EST) Date: Thu, 27 Dec 2018 10:15:34 +0900 From: Michael Paquier To: Fabien COELHO Cc: Michael Banck , Postgres hackers Subject: Re: Offline enabling/disabling of data checksums Message-ID: <20181227011534.GD2106@paquier.xyz> References: <20181221201616.GD4974@nighthawk.caipicrew.dd-dns.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4zI0WCX1RcnW9Hbu" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --4zI0WCX1RcnW9Hbu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 26, 2018 at 07:43:17PM +0100, Fabien COELHO wrote: >> It adds an (now mandatory) --action parameter that takes either verify, >> enable or disable as argument. >=20 > I'd rather have explicit switches for verify, enable & disable, and verify > would be the default if none is provided. Okay, noted for the separate switches. But I don't agree with the point of assuming that --verify should be enforced if no switches are defined. That feels like a trap for newcomers of this tool.. > For enable/disable, while the command is running, it should mark the clus= ter > as opened to prevent an unwanted database start. I do not see where this = is > done. You have pretty much the same class of problems if you attempt to start a cluster on which pg_rewind or the existing pg_verify_checksums is run after these have scanned the control file to make sure that they work on a cleanly-stopped instance. In short, this is a deal between code simplicity and trying to have the tool outsmart users in the way users use the tool. I tend to prefer keeping the code simple and not worry about cases where the users mess up with their application, as there are many more things which could go wrong. -- Michael --4zI0WCX1RcnW9Hbu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlwkJ7YACgkQnvQgOdby QH1EfQ//X0tmxUpRajT/LocmABCfJqvhEwNxr15RwyWvtS/fmDW6H4by0LTFyZEX m3webQh31lf7FEx++IexcEhHLGjdWd0m0vsQPUfN59BxjZ4NqnirONvEiIY3BZ7a Lmh6cOiwwj7IBm+TK8UMf0iAQSOj2WvheNCLkC947s3FwRp9go4iadfVciEg56U6 q6Qawd9Q298xk4fsfpngc7+BFENgyu3mpyQ+tR+fqZSeTJhPd/crZ3bDzVoc1s2b k4U9Ozl+vO+yVsMvwVDYw9pSIF+aSd/fWl4NP/7j2i2VHqLwL9QKLI3Po6AV5Al0 EisT6Uq9LMc+suMq2QVhy+iCunjbEo3peqO1lxRzUDuWFfxO2BL2U0cLY3zdFLp1 CQCbF/QtOQObRl0zY8XN22JPv+wp9Mcsc8Hy66MDZn+Zx7dhiKI6qIGEsnZIR8ad SQe30qia7Csv2hLHQdn5DIr7dq1agfNuThvZhBvfLcUgWcuslZAWuKZ2uhuQGhXN QvGJw9dyF6Q6yvIANpXF4vJUQRtoWcjZNpV1KS4roIUXd6492Kl1+pQdaaenXTD8 8mx0CbMtz413mkdCLiSEXEA1dWROkCLrbEj/ojZy/xnSSoZDFXREC8aWsldLqXRj 6rmObHt3CHiQQzBAIctY58qnuaLy/UtP49+ATnn5WFCXeLSuT5o= =tk3S -----END PGP SIGNATURE----- --4zI0WCX1RcnW9Hbu--