Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gB5ML-0006Z2-ME for pgsql-committers@arkaria.postgresql.org; Fri, 12 Oct 2018 21:52:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gB5MJ-0006XI-E6 for pgsql-committers@arkaria.postgresql.org; Fri, 12 Oct 2018 21:52:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gB5MJ-0006X7-9C for pgsql-committers@lists.postgresql.org; Fri, 12 Oct 2018 21:52:35 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gB5MD-0000Dy-CT for pgsql-committers@lists.postgresql.org; Fri, 12 Oct 2018 21:52:34 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D5FCC21EDD; Fri, 12 Oct 2018 17:52:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 12 Oct 2018 17:52:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=+TVUoCMA6QNjomv9IHTnt2ckQH3 gXm0KSw0ExVwaBqo=; b=ZVQWC5ysRbhfflFgPSLCwOpX5GTkpP5/nl3Q2WHWpqN e338wssOowtqRgDDCBt5YIXiWsd05jw9XDil9tepd2hD8pvmUDc0Eo5DVZ3bptoZ qFWwLok+LCXkewJbmt1mq0rD5zuE7qI8s2gOhdyvwah8Gfqj2rw/ZTBcwnF2q/Li pcKeCnM1TQ1LlUL4UigzcTlaU4Gw3bu7OAbhDmXW+xuPTQUWtcC56Hu+kTAAwZte miWJYEO1vlGo1d1SYt5fJ4pQTGOAVH4PPqlcLNHWqMmuU+pYIgexrEhdgT9+R+yX dxeF0nVVzyoq8Mss02qVBzWLD1rePDuH+nAaOZYwEzw== 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=+TVUoC MA6QNjomv9IHTnt2ckQH3gXm0KSw0ExVwaBqo=; b=GVBR87QmKS5Mzvvhle9m3F MwQhd6wIRlqpmEkyS9Lj8xxUcagi2mEWHjZ6B6kZW5tPL3AeKO0UDVGj9aDAgLf/ IjGjUOxyxAEeg/uJ4ALQO1Jc9N8pjdMJH6joHfaCrKbn4sHxbdrFKSMANn9ji9Ib Z559B2gK7Q3n+w/51V5UcYGsjzcAWIZRFOZFNHSKnhCunGBp/dWnEqh5F6wf9ypz cwb1JEv51iS2uo5xCoCVI7HjaTC0iKAy8j/OYhjlGa8lhDyakVx3gDGPUYYQTVJC XZNfnfk1HD1QjyPbaPO7iYgGLSUnL8Cusox9+4CXPdYSxqfHtRV4U4dUUn2ZMFBg == X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id B52A7102DE; Fri, 12 Oct 2018 17:52:26 -0400 (EDT) Date: Fri, 12 Oct 2018 14:52:24 -0700 From: Andres Freund To: Andrew Dunstan Cc: Michael Paquier , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add TAP tests for pg_verify_checksums Message-ID: <20181012215224.ykvphenx32j54oou@alap3.anarazel.de> References: <97ce0d10-9105-940c-f843-b9c0b6de4941@2ndQuadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-10-12 17:46:17 -0400, Andrew Dunstan wrote: > > > On 10/12/2018 05:14 PM, Andrew Dunstan wrote: > > > > > > On 10/11/2018 08:17 PM, Michael Paquier wrote: > > > Add TAP tests for pg_verify_checksums > > > > > > All options available in the utility get coverage: > > > - Tests with disabled page checksums. > > > - Tests with enabled test checksums. > > > - Emulation of corruption and broken checksums with a full scan and > > > single relfilenode scan. > > > > > > This patch has been contributed mainly by Michael Banck and Magnus > > > Hagander with things presented on various threads, and I have gathered > > > all the contents into a single patch. > > > > > > Author: Michael Banck, Magnus Hagander, Michael Paquier > > > Reviewed-by: Peter Eisentraut > > > Discussion: https://postgr.es/m/20181005012645.GE1629@paquier.xyz > > > > > > We have some failures here on Windows. I suspect we might need to do a > > little more surgery like was done in commit > > efd7f8e36553cd32e445061cbbc80d32028f4248 > > > > > > No, hah, I see what it's doing. It's trying to checksum a non-data file that > only exists in the EXEC_BACKEND case: > > pg_verify_checksums: could not read block 0 in file "G:/prog/bf/root/HEAD/pgsql.build/src/bin/pg_verify_checksums/tmp_check/t_002_actions_node_checksum_data/pgdata/global/config_exec_params": read 4843 of 8192 > > This gadget needs to learn to exclude such files. See conversation around http://archives.postgresql.org/message-id/20181012060543.GE30064%40paquier.xyz