pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: TAP tests aren't using the magic words for Windows file access
Date: Wed, 6 Nov 2019 12:38:05 -0300
Message-ID: <20191106153805.GA16880@alvherre.pgsql> (raw)
In-Reply-To: <20191105034138.GF16867@paquier.xyz>

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





view thread (29+ messages)  latest in thread

Message-ID: <20191106153805.GA16880@alvherre.pgsql>
Permalink:  ../20191106153805.GA16880@alvherre.pgsql/
Also on:    postgresql.org/message-id/20191106153805.GA16880@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: alvherre@2ndquadrant.com, michael@paquier.xyz, tgl@sss.pgh.pa.us
  Subject: Re: TAP tests aren't using the magic words for Windows file access
  In-Reply-To: <20191106153805.GA16880@alvherre.pgsql>
  References: <20191105034138.GF16867@paquier.xyz> <20191106153805.GA16880@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox