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 1jPEwD-0006l8-If for pgsql-general@arkaria.postgresql.org; Fri, 17 Apr 2020 00:32:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPEwC-0007HF-Ch for pgsql-general@arkaria.postgresql.org; Fri, 17 Apr 2020 00:32:56 +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 1jPEwB-0007CD-AK for pgsql-general@lists.postgresql.org; Fri, 17 Apr 2020 00:32:56 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPEw3-0003Vi-T6 for pgsql-general@postgresql.org; Fri, 17 Apr 2020 00:32:54 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id DEC647AF; Thu, 16 Apr 2020 20:32:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 16 Apr 2020 20:32:44 -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=KvHyRO31AuKVH47yOPa4DA9LoP4 e4IP9sKX7nLMK1L0=; b=cuAIzTe98/jifM0tzyTjRMhsPog3kLXqmLszvvJ7EB1 ZzM9qPAw7W3A65jyWFYPV17bQFcOAbEPkQTavyqGHl53zJWKdGjsXzt30eSSWInm 3f6oTPJ0rTWtVNE8FhJQEwT2MbKyZzL4mJRzbjl1i1/RxkwR41rM28yShxdIamzq W74zjBXh9cHqoAOlvIZzv12qwdtsbyZ8mgf+xQJcY4Jv95yXuifBImhfaFL+KcH/ QSwrqYRB1VwwQwViG06diyIP8+51q3u2Z/MVDmyJIL1naAgpQi5qXIC+NCpVDVpE /7wHANiDeb8oyblmUdUb+ZnQ4S7CPf4jv/GedY7XUVw== 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=KvHyRO 31AuKVH47yOPa4DA9LoP4e4IP9sKX7nLMK1L0=; b=AcsrhglRk1JUQUb8+pn0Gg 3I7dUixmHzYOz1rUr6iip0BG4+CiQ2Dnisork1WjI4T2XNN+uhyLXT5xqxB9iU4Y HZGSKfEgho2twdHs5WWsrFyeYm3Whu7R0ZR5anQyEiQI+PA9Bw9WNrRNseX+UEyJ yy0OCy9zyxRXfMXn7PUlOdqUuNV2ktxVz0thWfoVsedGfhgC7sJUN6t+XCiSr/xA hojhoEjOlNjJfzj1lTUwsAZz+F4IyplZd2XjzD5Hulzqt5MDjMoGGVA8VQNqEAOX CHMPmBBVzH77w9k/vmhCkz63mMygeFS/So59+BQruPGwkpe5O4DyuPCuvZvzF8Qg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeeigdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv 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 2A017328005D; Thu, 16 Apr 2020 20:32:39 -0400 (EDT) Date: Fri, 17 Apr 2020 09:32:35 +0900 From: Michael Paquier To: Jeremy Schneider Cc: Tom Lane , Magnus Hagander , Stephen Frost , Bruce Momjian , BGoebel , pgsql-general General Subject: Re: Using of --data-checksums Message-ID: <20200417003235.GE81957@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="Cp3Cp8fzgozWLBWL" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Cp3Cp8fzgozWLBWL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 16, 2020 at 03:47:34PM -0700, Jeremy Schneider wrote: > Data checksums are a hard requirement across the entire RDS PostgreSQL > fleet - we do not allow it to be disabled in RDS. I've definitely seen a > lot of hard evidence (for example, customer cases I've personally been > involved in) that it catches problems. Oh, that's good to know. Thanks for the information. I pushed hard as well to make this a requirement on what I work on. > I could not exaggerate how useful > and important I think this feature is: being able to very quickly and > easily know that a problem originated outside of the PostgreSQL code. The worst part with checksums disabled is having to tell a customer or a support staff that you don't actually know from where the problem comes, what is the actual origin of it, and why you think that the error you are seeing in the Postgres logs is most likely linked to a lower-level corruption as there can be many patterns, like broken btree pages, toast errors, missing attributes in catalogs, failures with FK references, primary key duplicates, etc. And people like to complain a lot about the database being broken because that's a very sensitive piece and usually more things depend on it. With checksums enabled, you still cannot say exactly from where the problem comes, but you can redirect the complains more easily to the correct people to help find out what the actual problem is. Even better, you can also know if a problem probably comes directly from Postgres and some backend logic if you don't see a checksum failure (note that could be as well a misdesigned HA workflow, custom backup script as well who knows but at least you know that something you control directly gets wrong). And the error message provided is clear. > This was in part what led to that long blog article I wrote about > checksums, and it's why enabling checksums was happiness hint #1 until I > broke them into categories. Reference? ;p -- Michael --Cp3Cp8fzgozWLBWL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6Y+SMACgkQnvQgOdby QH1YchAAlTlqG6+Yhq3WaOWeuLoS4M/uUJ4jLDmhgSbwUWqm2g20O/JIBrc75QkY eY7LWkNgEDoQCD3UIPJ5Yiv4wjY8CVgI+FbbgUpNlsBDsFBC9lBkump7UAO9TWoc jhKFF7f1GfZH0U2VYvmzf6hqslXOn23Vdv3h+hNvDuw2vR1C4xY4qI3qW2I7TMZz 7uA/yvpgKB6Ft0KbXnzSOdqoPchKgH+C+5pDi859pLNKfwNniZrSmHC4BhwO/LNW Hwim5oh/ulY5Vd1ikR0whXFGE6tWAaxE6mcEaMQ2csR+2p1UHWWzvmaMXJ3C+kcO QsdbkX93oRMNWnrTM6k7ndMAWd68ZjbZaIlEj5IJUz11XDSE9sicKq4D1ZajzsBu Dpj8OkiMZBCxhJUVhul7wTbTH7gPmgkSURniEwHvZ8mLdoePkCZoVERlovmD0OR7 e+43RehXAM/KHFw0axGeN0EVp4/tgwGv5tzVgnq9d5VDCu1q2oaMhIITLD1wJ8uf 7QYsadLI17gDdZ+EhuBmDEu4hKKQ09xYBRLEsZADourBzVnyFDd9xMuZOLLmutn3 QjnPyIZLrqOowXQeL3AZCiAk3bfILyV1Fr05lAdU4XmYVm3OORSZijHxeBVJ5equ 6ICgERwZPw0zKD4d9l/UgQgP62Gj0WvNMYdcVxt8Zf/K4FvUwiw= =1Jow -----END PGP SIGNATURE----- --Cp3Cp8fzgozWLBWL--