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 1iSNNu-0004gR-Qt for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Nov 2019 15:38:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSNNt-0008Pg-HO for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Nov 2019 15:38:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSNNs-0008N0-PB for pgsql-hackers@lists.postgresql.org; Wed, 06 Nov 2019 15:38:13 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iSNNq-0000Kn-3q for pgsql-hackers@lists.postgresql.org; Wed, 06 Nov 2019 15:38:11 +0000 Received: by mail-qk1-x741.google.com with SMTP id h15so15242433qka.13 for ; Wed, 06 Nov 2019 07:38:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=kjiVoR14cqCOrShn6JT5KlHH5D4AIsthId0Eusulw/8=; b=qg6zZ0g5G2FdzAxiEM/3VYxj5X8WX7mgTP7lXqUGTg3siL0V2UMGZ7A8l/SrGAzFPR fCalSltwRHTGAkjFINeI24/hUHP0CMNBeA84CFfdcqoqAAucS26NhOJVarog6Rdp9/hM Ew90m+moubQt8yRb78P8xC6ZSR17p8e/MNJ7I8x4/k0IyWP/qhWlD2/xkcM8pBMFrYbT FOJe+pUmjcwjClLnkq+mTR4Ygwyat6nYr6p3Bj3DyTt83wlRRFqzXZME4qiwW6dR2cyE +AK+cII5LXGCThco97uXGvc5aWaHBA1ph9UjQSetblEJkLCG+KXdyR/UyVwZze4iWK9G +ahw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=kjiVoR14cqCOrShn6JT5KlHH5D4AIsthId0Eusulw/8=; b=YBePl1+Pp+bIWXpvPOLMCXhu2zw1LS4PXKfJQD+hOYO+wzSCPo4fVgw6w8Ma4pV19b CIrhT1e7qK//aGFzMH03+m4thJSo+7w8XZ+l6TG3yMFcdDYtmcq1ODVhHLLCP1dTl+IT Ptb1DQu2dgzD2ryTKRK30Zz2v1BhryRiTTu6SQScS4ca3Muv5IwZPUkncOhQYPQjAmvA 978ULwWh4Zlyi52iMlPdRuq1mfu23kO+Ly4yHnibHrnz2AtWdsnftSvjgi/BFbwyyL0y BQA+JHCO1qV0uGK0b9YgrFTL3l2Mr1xrhYHRG1i6OOeg1qGtyDRb7vc/+7DxT3S6YzJV DbOQ== X-Gm-Message-State: APjAAAV63Edy8GPl0HuxKwYObpztoYWFGMnNi4tLHgNB8ryl5lGSBhXz 8C4p0pPJzUQ32xgzJC0lsWG4/kPkkUCPYbYADN8FxHTCNuRvIiBCVcd+YFQuPbfL6HoPgSKkYXp ekiMv11oS69L6Zs3WdT6JmpXYm3duB7rjKa66tALhWdaZBw4fnz7Uwl/o221lPSSpxlZavZDzAl xdTRpW/ASCIoriTkoF X-Google-Smtp-Source: APXvYqz3rMRlDg1L6JYeHbKgBu6L3BcRcWh/2P/dtftr8eKlqUK6YfaseVCzuqi9qkRx+pOZEkARCQ== X-Received: by 2002:a37:a09:: with SMTP id 9mr2523829qkk.182.1573054688819; Wed, 06 Nov 2019 07:38:08 -0800 (PST) Received: from nimloth.alvh.no-ip.org (ip-11-2-52-196.nyc.us.northamericancoax.com. [196.52.2.11]) by smtp.gmail.com with ESMTPSA id o5sm9773942qtq.10.2019.11.06.07.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 07:38:08 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 3FE17300B5A; Wed, 6 Nov 2019 12:38:05 -0300 (-03) Date: Wed, 6 Nov 2019 12:38:05 -0300 From: Alvaro Herrera To: Michael Paquier Cc: Tom Lane , pgsql-hackers@lists.postgresql.org Subject: Re: TAP tests aren't using the magic words for Windows file access Message-ID: <20191106153805.GA16880@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191105034138.GF16867@paquier.xyz> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Nov-05, Michael Paquier wrote: > On Sun, Nov 03, 2019 at 10:53:00PM -0500, Tom Lane wrote: > > That is, TestLib::slurp_file is failing to read a file. Almost > > certainly, "permission denied" doesn't really mean a permissions > > problem, but failure to specify the file-opening flags needed to > > allow concurrent access on Windows. We fixed this in pg_ctl > > itself in commit 0ba06e0bf ... but we didn't fix the TAP > > infrastructure. Is there an easy way to get Perl on board > > with that? > > If we were to use Win32API::File so as the file is opened in shared > mode, we would do the same as what our frontend/backend code does (see > $uShare): > https://metacpan.org/pod/Win32API::File Compatibility-wise, that should be okay, since that module appears to have been distributed with Perl core early on. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services