Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNl7b-0000yz-Hn for pgsql-general@arkaria.postgresql.org; Sun, 12 Apr 2020 22:30:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jNl7a-0002Yz-85 for pgsql-general@arkaria.postgresql.org; Sun, 12 Apr 2020 22:30:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNl7Y-0002YU-7F for pgsql-general@lists.postgresql.org; Sun, 12 Apr 2020 22:30:34 +0000 Received: from [64.147.123.25] (helo=wout2-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNl7U-0006HZ-SZ for pgsql-general@postgresql.org; Sun, 12 Apr 2020 22:30:31 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 1DC587C2; Sun, 12 Apr 2020 18:30:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 12 Apr 2020 18:30:16 -0400 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=fm1; bh=C/tjI4velVgRi38HwUB7Bh21zxU voJhkDt7Ltc25dz4=; b=RfjVec4f127sB3QwLRelFRcSp9LAZ/J7fi28XsZXmed N3qNHsePBGAaCrxDks8X0KMCFDfvSi8I1iyvnkW5MthBxhCn3DbVUZkjmxXb8IEh jEftlLh5GsRAvHuf8QEq2SgYXpzcrvquMV7Wv+6fTCy8j06TOOLlMi2canJ8QZLH WwpBDT5gElD4iLqoRW7ssB5vsFE7w44rpZOg+jE7mVBIjSvusYAaZuFeG3Vh4jHe 9jhfy8Qi7BfWEF1VgV2BNb/4BZx8km60S4eIJg5Kts1V/jpzOd0LXa25Pbj+G43H kVYM+wRBJp3k0gG8mDGNhhD6UPJ4Sub4+28WKwnS0oA== 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=fm2; bh=C/tjI4 velVgRi38HwUB7Bh21zxUvoJhkDt7Ltc25dz4=; b=eQttV83yDZJdIl36Wlwrkr uQoxUqoCObxTB4KlO0SvlDdzNCfKspZQKjEFvoTwZOBsFArhwf2Kq5F91j0U2x+c B5uaSX5RgI5jcKDC5vCkSdecK83f/3qFDelC83d+IQlft4w7k51fJrvbG3TSHTRT DmlN360pNFRza+ZT37Gm7I+7wC5IpryFPpm5XwknSuW1WbG5sJHjATUPidB5qlKB XjsnJ2lmWBr6SWzvJ8an9Ckdlp/3q+1B8/u2XaRC7EGiHDsX1VhPcs03mx63/3oL oWsdA7vVsqUXQlr2OEMb31vi+yaIJqNcfjqvWgBZTXdx5G0+vUB7puEZuW3CCdyQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrvdekgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesph grqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 09061328005A; Sun, 12 Apr 2020 18:30:11 -0400 (EDT) Date: Mon, 13 Apr 2020 07:30:08 +0900 From: Michael Paquier To: Tom Lane Cc: Magnus Hagander , Stephen Frost , Bruce Momjian , BGoebel , pgsql-general General Subject: Re: Using of --data-checksums Message-ID: <20200412223008.GA2169@paquier.xyz> References: <1586272213908-0.post@n3.nabble.com> <20200408155434.GG13712@tamriel.snowman.net> <20200410202508.GB24987@momjian.us> <20200410203746.GA13712@tamriel.snowman.net> <20200412060513.GA6012@paquier.xyz> <13634.1586701404@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <13634.1586701404@sss.pgh.pa.us> X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.25 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 12, 2020 at 10:23:24AM -0400, Tom Lane wrote: > Magnus Hagander writes: >> And FWIW, I do think we should change the default. And maybe spend some >> extra effort on the message coming out of pg_upgrade in this case to make >> it clear to people what their options are and exactly what to do. >=20 > Is there any hard evidence of checksums catching problems at all? > Let alone in sufficient number to make them be on-by-default? I don't know if that's a sufficient number, but I have dealt with corruption cases on virtual environments where these have been really essential to find out proof that the origin of the problem was not Postgres because those bugs created wild and incorrect block overwrites. With the software stack getting more complicated, making them the default would make sense IMO. Now the case of upgrades is more tricky than it is, no? There is a copy of the file so we may be able to do a block-to-block copy and update of the checksum, but you cannot do that with the --link mode. -- Michael --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6TlnAACgkQnvQgOdby QH1sgQ//VEfX5lr3BOatDYh7w71rWuddWOmQosQlWxrzvo5ImTlOfmakQfL8at39 LKHGUUZQxyhuXOV2rlB0U+6/xz0A4Ev5chxZdez8ssWP3wcpGsIgQ0FTb0eIvfVM pLAmjueBNUhFqK16pK1Ue4CAF7+rsnjKsYp5EfHWyWZMV1r7eTrg3cXzHscXszPV USelVQfKRYvYDXjbA0f0skuO30UQBBH6t7dVmCr3sCT6ooPJSwlxs7juAYb1CR/f tQucglzMjn9M+ouobtxvQOFsHmaJaATVoUe9uvZb3pvhctL0ZkLIVGxfCZKk6+ld oagSGzbo0IwrNgv9JwFmRWbx0DdSeTcZYy2+8xRD7+HT2CSsSk23DOXfyJbJIZPj izFH9UlkXdX0sa5SA9NNJXFUy4y8NJrXErKGDPb9cabV+IsMerdbMBwUAal+6qm6 WwAWHZFxZfu1MgJDTqGQPvrvBmYZgMYNnxe/XLkQmZcsimXsHZn6OUN9vih+zj7O IEEoP5Tpt3AAtgiiLkjkl+QVIgYeOHMCUMd/1/B/Dox3f9wzCuxWqHb6PgF9CExv lCNujqJXs2oVf/IA5f1e43U2TgoQfiLS+ShxD0Q0H9zNkXictAEe2gHZODwRN3/W 3OcktpQAMXZdLB0RX9PXmvOWVmg7khi44CjcLTqZ2gDNptZbAZk= =IiCk -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--