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 1gRfGG-0004uN-Pl for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Nov 2018 15:26:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gRfGE-0006Co-En for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Nov 2018 15:26:50 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRfGE-0006Ch-7I for pgsql-hackers@lists.postgresql.org; Tue, 27 Nov 2018 15:26:50 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRfGB-0001ZT-Lm for pgsql-hackers@postgresql.org; Tue, 27 Nov 2018 15:26:49 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id D61141E3A4A; Tue, 27 Nov 2018 16:26:46 +0100 (CET) Received: from kohn (fw-front.credativ.com [62.154.226.94]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mba@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 65F6E1E3A46; Tue, 27 Nov 2018 16:26:46 +0100 (CET) Message-ID: <1543332405.17247.9.camel@credativ.de> Subject: Re: pgsql: Add TAP tests for pg_verify_checksums From: Michael Banck To: Michael Paquier Cc: Andrew Dunstan , Tom Lane , Andres Freund , Postgres hackers , Daniel Gustafsson , Magnus Hagander Date: Tue, 27 Nov 2018 16:26:45 +0100 In-Reply-To: <20181127135221.GG1716@paquier.xyz> References: <20181014224138.GA15473@paquier.xyz> <11414.1539615900@sss.pgh.pa.us> <20181016220900.GA2331@paquier.xyz> <61121849-19c2-ca27-a928-08aacc0f1105@2ndQuadrant.com> <20181019135009.GG2099@paquier.xyz> <1543324145.17247.6.camel@credativ.de> <20181127135221.GG1716@paquier.xyz> Organization: credativ GmbH Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, Am Dienstag, den 27.11.2018, 22:52 +0900 schrieb Michael Paquier: > On Tue, Nov 27, 2018 at 02:09:05PM +0100, Michael Banck wrote: > > I had a quick look at fixing this but did not manage to immediately come > > up with a solution, so posting here for now. > > If you look at another thread, the patch posted on the top would > actually solve this issue: > https://www.postgresql.org/message-id/20181021134206.GA14282@paquier.xyz Oh, I kinda followed that thread a bit, but I think that patch fixes things more by matter of moving code around, at least I haven't noticed that tablespaces were explicitly claimed to be fixed in that thread. > Your problem could also be solved with the minimalistic patch attached, > so fixing on the way the problems with temporary files present in PGDATA > something like the attached could be used... Thanks! > Based on the stale status > of the other thread I am unsure what should be done though. As pg_verify_checksums appears to be broken with respect to tablespaces in REL_11_STABLE (so I think 11.1, but not 11.0) as well, I think this merits a short-term minimal invasive fix (i.e. the patch you posted, just that there's no TAP testsuite for pg_verify_checksums in v11 unfortunately) on its own, regardless of the wider changes proposed in the other thread. Michael -- Michael Banck Projektleiter / Senior Berater Tel.: +49 2166 9901-171 Fax: +49 2166 9901-100 Email: michael.banck@credativ.de credativ GmbH, HRB Mönchengladbach 12080 USt-ID-Nummer: DE204566209 Trompeterallee 108, 41189 Mönchengladbach Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer Unser Umgang mit personenbezogenen Daten unterliegt folgenden Bestimmungen: https://www.credativ.de/datenschutz