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 1gB5GL-0006Ay-KK for pgsql-committers@arkaria.postgresql.org; Fri, 12 Oct 2018 21:46:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gB5GJ-0005YT-JL for pgsql-committers@arkaria.postgresql.org; Fri, 12 Oct 2018 21:46:23 +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 1gB5GJ-0005YK-En for pgsql-committers@lists.postgresql.org; Fri, 12 Oct 2018 21:46:23 +0000 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gB5GG-00005h-S5 for pgsql-committers@lists.postgresql.org; Fri, 12 Oct 2018 21:46:23 +0000 Received: by mail-qt1-x832.google.com with SMTP id d21-v6so3051355qtq.2 for ; Fri, 12 Oct 2018 14:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=jTSrFob3PTqCrf6fFraWDB7lKNVguTuGGsYN5yNq/6E=; b=df9Ch+zBiAwbyQT5f+Zuv60W8db3H154qAZ+FX/6c1MfV6VNwob2SmS0tgFOBwp3E4 Z+Q0v4oiGek1Vn2+8TI4pFO8XmSfAmVgkH48+3lxbPGnXB7Accendctrb69sRAfUaWqT SU0B/RZ/A2+bcAGHghamHvVD/3Lqm/zp9P/WJqaAWMTndo+VkXFyCqyEkGPr0FakWFZR 10YBiQROOEi62XzPj4r9j+Obb3j6anNt4aA4ZD4xcaZJ1oWjQpkDVSm35InIQXWF2Z/B p3UXDOZN6TlQLz0PXAFSK+O5zJ1PXwWuHRpkgesK8Xm/BS0DqcJ4sJ0yYhVc4GtS/7t1 3joA== 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:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=jTSrFob3PTqCrf6fFraWDB7lKNVguTuGGsYN5yNq/6E=; b=WdH5B0E0/uL3y/xBTwKJScYPO0rlMFUsRAa5QAMoakvga/TSMTckkE91IthomZdUGR MZ2V2TA76c1BKvlV5QHN+oGShi2NYwHWj3OrYnVzdKLwjvbw2AMuUS1PsZKB57L6dJRH KBJpHYko6yWrCxphL6bgL81IumdzTJw6d4QOFTCorb9jet4e9c6sR04uvxleT3SkDioL 2IveE25CCoR+u+Bf/4zEKFr1nWHPbhWyFXJCgTqfcSI4v3HLgUlLEz5phYOW44lvc9ck uSp00XyB2+X2AhTsVb4svbAjx/dTfNVkrkKGP+ilTrbq7oBRVCPOt7XFhi04rh4XcXXd lD2A== X-Gm-Message-State: ABuFfoh4mXXotCnt/y5/9gP04x6kcfJOoXT8n3n5BtrRjpZK7f5RWpvl z09QkznGhRzgtELSfOXlDHHGMz1YcjgVzhDMceNhx7ne3bNDOsOecppUgl7OfitwN8Xly8LMHMI 4z2UaJ8+SMxUmdYAWJdI03liv12BXa27UMFGhf+Q/H53k8CAx2qZ+7aCQ4q8ONAqCEsKoX6/Ctq Qr+9fuWhRWyTy1AyWh2lKnuRVr X-Google-Smtp-Source: ACcGV63OpYhn28mOIX4Cp/Xc1GPy0YvzsU/9O8189/6EBY0rGObS+t7JJ380nTrhOPeYU0OesVd84A== X-Received: by 2002:ac8:f06:: with SMTP id e6-v6mr7498687qtk.262.1539380778726; Fri, 12 Oct 2018 14:46:18 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id a68-v6sm1863866qka.54.2018.10.12.14.46.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 14:46:17 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pgsql: Add TAP tests for pg_verify_checksums To: Michael Paquier , pgsql-committers@lists.postgresql.org References: <97ce0d10-9105-940c-f843-b9c0b6de4941@2ndQuadrant.com> Message-ID: Date: Fri, 12 Oct 2018 17:46:17 -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: <97ce0d10-9105-940c-f843-b9c0b6de4941@2ndQuadrant.com> 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: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. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services