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 1gcgz0-0008Ou-38 for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 01:30:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gcgyy-0000kt-Rh for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 01:30:36 +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 1gcgyy-0000gv-FU for pgsql-hackers@lists.postgresql.org; Fri, 28 Dec 2018 01:30:36 +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 1gcgyv-0004VN-1n for pgsql-hackers@postgresql.org; Fri, 28 Dec 2018 01:30:35 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6CCA3219E6; Thu, 27 Dec 2018 20:30:32 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 27 Dec 2018 20:30:32 -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=ouVTBmYOKsGPSTqIEoSEd6gSLth hoO53ii2kQSWVWl0=; b=VY5vETrIWrk1XgksULlHn6WELGD9hPqd0u0u8Xe8d0P N6LdqFQ17holBm0lW62iy1ENlooFfTdZTGLCr97Qso8BYUsJyWKDWnEj6WjDSglB W813gyhyokY63lfljhXcf0KO8r/kgV37MxP7BGmG0Y1oXie+sF8bux6C+XED12lJ cWsO0/op4Pp2QJOwKaofARY+SN3rMyY0flcd5iNxHob9y9j2etMpPLF9TeWKb6L0 XGnKBMq67USHPLMVXkJgRjqDIceG8BgecQpTW0v0PX3YxAxed8CCGy82/wSyjfzm D6z2jL+jmEr/yxSfJLvFXcKpzP13CQSJQxLohNDK8Zw== 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=ouVTBm YOKsGPSTqIEoSEd6gSLthhoO53ii2kQSWVWl0=; b=vBMBltJZerx6LnVucXWVmt NAa8WVDExn76yyY2y3oWVMgCOeoQ+bmyD+NsaKB+W60JILUmP8gKXzwKzpGI/GG+ KGFEzL7wKxd7sDtPSEarWGXfnVFiNMJNAMzre2TbBjYVSREXwZBd1iyCwsLcN2mz uGgf2kNwSeX1092f2y9d5HC4NK8BO3iEameuxgGq8J1aRWwTppZmjN99HD+kx43k Q5aesyScVrirF1n8tosk4mpegtYQdiEzTGQ1gZqBikf/UplYZGdDZnrTJSVzHaGK WtzDCmYOWiX7QTFWUtBMmwtO041bui2y9OuuWVRhg0H8UTSKrYQAoN8Htx9e4aRw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrtdeggdefieculddtuddrgedtkedrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepuddukedrvdeguddrvdehtddrjeeinecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (mp76f1fa4c.ap.nuro.jp [118.241.250.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 12DA1100B9; Thu, 27 Dec 2018 20:30:29 -0500 (EST) Date: Fri, 28 Dec 2018 10:30:27 +0900 From: Michael Paquier To: Tomas Vondra Cc: Magnus Hagander , Michael Banck , Postgres hackers Subject: Re: Offline enabling/disabling of data checksums Message-ID: <20181228013027.GD3210@paquier.xyz> References: <20181221201616.GD4974@nighthawk.caipicrew.dd-dns.de> <20181221232834.GB1948@paquier.xyz> <348aef85-a967-80d2-7bef-7274909475cf@2ndquadrant.com> <20181227232529.GA3210@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Qrgsu6vtpU/OV/zm" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Qrgsu6vtpU/OV/zm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Dec 28, 2018 at 01:14:05AM +0100, Tomas Vondra wrote: > I'm sorry, but I'm not sure I understand the question. Of course, asking > over at -packagers won't hurt, but my guess is the response will be it's > not a big deal from the packaging perspective. (The previous email had an extra "Would"... Sorry.) Let's ask those folks then. > What do you mean by "control" here? Dealing with checksum failures, or > some additional capabilities? What I am referring to here is the possibility to enable, disable and check checksums for an online cluster. I am not sure what kind of tooling able to do chirurgy at page level would make sense. Once a checksum is corrupted a user knows about a problem, which mainly needs a human lookup. > I'm not sure data checksums are particularly great evidence. For example > with the recent fsync issues, we might have ended with partial writes > (and thus invalid checksums). The OS migh have even told us about the > failure, but we've gracefully ignored it. So I'm afraid data checksums > are not a particularly great proof it's not our fault. Sure, they are not a solution to all problems. Still they give hints before the problem spreads, and sometimes by looking at one corrupted page by yourself one can see if the data fetched from disk comes from Postgres or not (say inspecting the page header with pageinspect, etc.). -- Michael --Qrgsu6vtpU/OV/zm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlwlfLMACgkQnvQgOdby QH00Fw//d41P9DOQcdxcSkWIaQo6ryT93tsYlDO4MMaKapqw11ciMw8atvK72paF qn/iUpPO3OQ4rYYw/H1+4FKP/S/f8KpQ1qqb85CXdZ0vWcCuENdSADDjawprB/Ah fdGhXZnJ56W9L9dOTb5IGOVZrROdPOhvRCVGbyuOWXlw2pEjN9XK9phJ/uxQgInh Z8Wn0YwF/pYZvhaCSjE9LsJLMtT2QExWH1d/XehQ0YgQFkQBJHHcTBgI/zctwnIg UP+ij6bVXymU8PL7vKI/7KO8ZGJLR7wd9DjREbyt3uUr1F9UULIgXBx87LT0IAxe m4pMgO5jtafH+jFlqRuk3DIFEaldZNF8023GSlmx8Q+E9J0mt4Z8CS8n8OOa/Zby X61btLm5SzyeMpe3FwtP/j+rxK3pX/4bGAHiCOgdupgvZrEm08zK0ysEgikHZXHc g1ihS/zTpWvOOnPet+EoJw8zZQIKXpNQY/KQAJqCxJoPxaRh6SCb7MZk8YUYLwtD 7DeHVsCowds8XxEo4/dcouVeKKLC/iwTNh8kZ51Mln7DY5ut7b8przdF5Ua5nMuf kgwI1GAuorolLhqejOsWCHqFMFa/69MzAO01TAz/caKjX7jGt0VJL7qILW+rhXCx dnuk1Skkp6+2UomI7343vu5VtXwkoX5YNMTLRoQfCqgBpUAx0tk= =Zoua -----END PGP SIGNATURE----- --Qrgsu6vtpU/OV/zm--