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 1gB5QU-0006n7-8x for pgsql-committers@arkaria.postgresql.org; Fri, 12 Oct 2018 21:56:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gB5QS-0007P7-42 for pgsql-committers@arkaria.postgresql.org; Fri, 12 Oct 2018 21:56:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gB5QR-0007Ou-Rj for pgsql-committers@lists.postgresql.org; Fri, 12 Oct 2018 21:56:51 +0000 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gB5QO-00060n-4M for pgsql-committers@lists.postgresql.org; Fri, 12 Oct 2018 21:56:50 +0000 Received: by mail-qk1-x729.google.com with SMTP id g20-v6so8556710qke.9 for ; Fri, 12 Oct 2018 14:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=gBSRXSKniHdq/AzWLtiZ5+2DjTB2hz4AIfJBn++N6s8=; b=oJoajL7K+FLGT47ZfLxS6+FzfqqCwdlxDN4BMxGk8H2DSJ3D266X9gCtqp5N5rZoIA P1OYhuLAYRKdpR/tJvSJCvy6XdTX7WNMNQXIA1+ZkpMGNmqtmi/VDGRcWTGCnpJi1k5g chy94pUW43sl3zPoJqHAz9mSiMsMyA5AL9Y5aM9U35fjeiSciU/uHcQLzlxAqzFn4DVn VJtdBg4nN4lWQE8vKyNrro6gimwJE3XYR8erMV7KhC+u0PTWoMeImhi78C5Sd3dfR6fP 9fGlA3SEJnn1ciictfXno7G/Wch1hJMw1D6K0P6PlKvVe98KjPVP11zuqw35SlJXQdT/ 2apg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=gBSRXSKniHdq/AzWLtiZ5+2DjTB2hz4AIfJBn++N6s8=; b=WIlaLu2D+dbEJhE/c2cnDadSp0WTgZ/TeeGGYv4SKB2cbp4vl/hEdVz5ToC4d6VNs0 UWiIWRx1D96aAY7JMBC6wARTis3gLZQ5N6hLF0WwIQJBpELlwOFAOtqgg1QD1XG7w1y+ TfzJaQWfL5P4XlvbSuDu7BwmIL1lhRsO4/kDCB+XE/ue69QTPnjTFDDDPQUZm1vPMx7a HZQVer7E1FaBnEIxE9ccrEtcaZhnCvrC1Q6CDH48F3Yz0cAtEhofSUeWeqejoWRzzT0j pZjZDOHfAa8eAm3hCFaExRZbgSh9GVHp1xH9bAfwOXf9B+jkOMY+WS78dtsrP1GDAsOm kWrg== X-Gm-Message-State: ABuFfogJdueM7C6rNZmIRSKrqZY/+1SIm7UlQNAYtneKnqTq7iBla33j JZIwWuLWbs80BNVkcbrY6yju6cjlbPQG5G3OOfOrqjZbmgWfPHL8Z+hvhOuRI7DRfCQM153L6kl +Q4AnTQwenWGCsRaJHgIoWJB/oVlbBSdh3HNgbsRugwCr+qHERdHVU1Frqfn9ZMDwCztRCy4puf 8Z/5Z08jlARNGYQP3F/1fGFPje X-Google-Smtp-Source: ACcGV62K1kDKM5DLDyEJIHp0PonqTvDMPKAmGyq01DT0gTB9B2TADNu4lNgaufTz5BWF52AV1RC1wA== X-Received: by 2002:ae9:f80b:: with SMTP id x11-v6mr7367886qkh.134.1539381407061; Fri, 12 Oct 2018 14:56:47 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id c21-v6sm1680166qtk.7.2018.10.12.14.56.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 14:56:46 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pgsql: Add TAP tests for pg_verify_checksums To: Andres Freund Cc: Michael Paquier , pgsql-committers@lists.postgresql.org References: <97ce0d10-9105-940c-f843-b9c0b6de4941@2ndQuadrant.com> <20181012215224.ykvphenx32j54oou@alap3.anarazel.de> Message-ID: <5d0a3714-4ca2-6e3e-ea53-bec9400fc3fb@2ndQuadrant.com> Date: Fri, 12 Oct 2018 17:56:45 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20181012215224.ykvphenx32j54oou@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/12/2018 05:52 PM, Andres Freund wrote: > 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 Ah, thanks, missed that. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services