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 1gSoJ5-0004Qx-Sy for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Nov 2018 19:18:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gSoJ4-0008Ho-Ea for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Nov 2018 19:18:30 +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 1gSoJ4-0008Hh-7W for pgsql-hackers@lists.postgresql.org; Fri, 30 Nov 2018 19:18:30 +0000 Received: from mail-yw1-xc32.google.com ([2607:f8b0:4864:20::c32]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSoIw-0006Se-H7 for pgsql-hackers@postgresql.org; Fri, 30 Nov 2018 19:18:29 +0000 Received: by mail-yw1-xc32.google.com with SMTP id y194so2732852ywg.3 for ; Fri, 30 Nov 2018 11:18:21 -0800 (PST) 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=rOGLTuEAeoTsLCt7LMTnmrQnyWCtOpFwRxRi2rcAycc=; b=j6Cx5YOhApgfArHhS2xnWDQEFTKrJEFeAdwRVX8L9cDrswuufgGETQh5mRmRJK2aWB /xMxLSPOpbdDnHKsGAzrnZ8gLUx5TqLmGpSjPh2ACjjiNXVpiuLmmcE11CWkO/wdEpQk aB36JK1FBxRwIIJ0NoCjEDhs07XRBx+w9rbS7dld7APZVi1FJIvQIT02DueY97fPSWYM 48tlUeqk+WnnWf8mg5bhqUc2gbBd4Kok88dcL1+I6Z/HbBrOSqFyTOVB8/Bod7sJ73Iv bljQHyQ43anYyMZg0NgMmsSv6peYbBqAy+wNkZqIlGsmUzWQvIRHGPD5L2bCy0uBgD/p tfgw== 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=rOGLTuEAeoTsLCt7LMTnmrQnyWCtOpFwRxRi2rcAycc=; b=NIgCyFtnIHyiAExnUJKpCk7ZeScgZ3kyXWjNSUdNrqJ504xbk8Wilv3HjsynmuIVrD xndrzxVQJurs9yAvTTbQmaLVcDlehC+obpPiF0lpbotike5e3n0Uvkxzh+tiQWLI1nq9 RGJjDsFpMozEVLP0UR3CFdxYCryrpI53GNDdhRgbUDK0u88r6/DLpE85uQgm7GlKrPQx rIKP2/3Bl+xphS1UiON/YtoF8UmOCpERjU8Y0NLqeB0pO0VGQF4UOLaZbDl11eT146qO HWWrALOUh+iQLDIamKKNlvUcTx6d97lx763Vjl7vy67vd65zAM7K31/88lth8jw0hzK8 fSmQ== X-Gm-Message-State: AA+aEWZGlryi4ljpwTeNKcAyFl6q6otFGXwJyXgYPHKUvirS3mznzk3F dIWCQe4Ktfqdg0WfiFeY0XF7WELjCLmSCne63GBGUAXjapIeNINBpLj2vzc+ehGbLGD4WEz6j6a xoJViRGXNh4iC0N1YHmTgbmbXy29qn45Rb10ypKY+2eWsuT4keaTenlgLvv1Qr/zb6B3SNM6cgF VNdmycLJ/k21WP X-Google-Smtp-Source: AFSGD/V65L7uxgsMFjqKija46HUw18tEx3nMIYA7VXkzu92eJXni1TzI113K6bgliEcqcg/ejDTUtA== X-Received: by 2002:a81:63d4:: with SMTP id x203mr6667594ywb.82.1543605499989; Fri, 30 Nov 2018 11:18:19 -0800 (PST) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id r63sm1975124ywe.18.2018.11.30.11.18.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Nov 2018 11:18:19 -0800 (PST) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pgsql: Switch pg_verify_checksums back to a blacklist To: Michael Paquier , Postgres hackers References: <20181130053555.GF2267@paquier.xyz> Message-ID: <9f0ffac8-f9dd-9be7-c471-6ef0a20f6d88@2ndQuadrant.com> Date: Fri, 30 Nov 2018 14:18:18 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181130053555.GF2267@paquier.xyz> Content-Type: text/plain; charset=windows-1252; 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 11/30/18 12:35 AM, Michael Paquier wrote: > On Fri, Nov 30, 2018 at 01:36:43AM +0000, Michael Paquier wrote: >> Switch pg_verify_checksums back to a blacklist >> >> This basically reverts commit d55241af705667d4503638e3f77d3689fd6be31, >> leaving around a portion of the regression tests still adapted with >> empty relation files, and corrupted cases. This is also proving to be >> failing to check properly relation files located in a non-default >> tablespace path. > So, jacana is not in love with this commit for the tests: > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jacana&dt=2018-11-30%2003%3A34%3A23 > > The error is here: > server started > # Postmaster PID for node "node_checksum" is 14820 > error running SQL: 'psql::1: ERROR: directory > "/home/pgrunner/bf/root/HEAD/pgsql.build/src/bin/pg_verify_checksums/tmp_check/t_002_actions_node_checksum_data/ts_corrupt_dir" > does not exist' > > What visibly happens is that we create a path for a tablespace which > will include a corrupted table. However psql tries to run CREATE > TABLESPACE but gets back a complain about the path not existing. The > thing is that mkdir has been used beforehand so the path should be > here. > > I have tested this set of TAP tests on my Windows 10 VM with MSVC 2015 > before commit and those tests passed. Could it be that jacana is using > msys, so a trick similar to what is used in 014_unlogged_reinit.pl is > necessary? > > Andrew, could you confirm if the patch attached works? I would prefer > not doing a blind fix if possible.. All it actually needs is this additional line after the mkdir: $tablespace_dir = TestLib::real_dir($tablespace_dir); Explanation: TAP tests on msys need to run with the DTK perl, which understands msys virtualized paths. Postgres, however, does not understand such paths, so before you use such a value in, say, CREATE TABLESPACE, you need to translate it into a path on the underlying file system. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services