pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: TAP tests aren't using the magic words for Windows file access
Date: Thu, 21 Nov 2019 09:35:33 -0500
Message-ID: <5224aa87-30e6-421d-992e-15b72621064e@2ndQuadrant.com> (raw)
In-Reply-To: <CA+hUKG+jsKgA+gEdd+Tq9fL+V-YdE_+Q6J=OGsDB-Ki-_xenkA@mail.gmail.com>
References: <20191107141229.GA20606@alvherre.pgsql>
	<3d83a831-197b-e904-5bbb-3cce41c2f47d@2ndQuadrant.com>
	<CA+hUKG+jsKgA+gEdd+Tq9fL+V-YdE_+Q6J=OGsDB-Ki-_xenkA@mail.gmail.com>


On 11/20/19 3:40 PM, Thomas Munro wrote:
> On Fri, Nov 8, 2019 at 3:41 AM Andrew Dunstan
> <andrew.dunstan@2ndquadrant.com> wrote:
>> On 11/7/19 9:12 AM, Alvaro Herrera wrote:
>>>> The patch says:
>>>>
>>>> +        require Win32::API;
>>>> +        Win32::API->import;
>>> Oh, you're right, it does.  I wonder why, though:
>>>
>> On further inspection I think those lines are unnecessary. The remainder
>> of the patch doesn't use this at all, AFAICT.
> So does that mean we're back on, we can use a patch like Juan Jose's?
> I'd love to get rid of these intermittent buildfarm failures, like
> this one just now:
>
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=drongo&dt=2019-11-20%2010%3A00%3A10
>
> Here you can see:
>
> could not read "C:/prog/bf/root/HEAD/pgsql.build/src/bin/pg_ctl/tmp_check/t_004_logrotate_primary_data/pgdata/current_logfiles":
> Permission denied at
> C:/prog/bf/root/HEAD/pgsql.build/src/test/perl/TestLib.pm line 397.
>
> That line is in the subroutine slurp_file, and says open(my $in, '<',
> $filename).  Using various clues from this thread, it seems like we
> could, on Windows only, add code to TestLib.pm's INIT to rebind
> *CORE::GLOBAL::open to a wrapper function that would just do
> CreateFile(..., PLEASE_BE_MORE_LIKE_UNIX, ...).


Possibly. I will do some testing on drongo in the next week or so.


cheers


andrew



-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services






view thread (29+ messages)  latest in thread

Message-ID: <5224aa87-30e6-421d-992e-15b72621064e@2ndQuadrant.com>
Permalink:  ../5224aa87-30e6-421d-992e-15b72621064e@2ndQuadrant.com/
Also on:    postgresql.org/message-id/5224aa87-30e6-421d-992e-15b72621064e@2ndQuadrant.com

 · 

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: andrew.dunstan@2ndquadrant.com, thomas.munro@gmail.com, alvherre@2ndquadrant.com, juanjo.santamaria@gmail.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: <5224aa87-30e6-421d-992e-15b72621064e@2ndQuadrant.com>
  References: <20191107141229.GA20606@alvherre.pgsql> <3d83a831-197b-e904-5bbb-3cce41c2f47d@2ndQuadrant.com> <CA+hUKG+jsKgA+gEdd+Tq9fL+V-YdE_+Q6J=OGsDB-Ki-_xenkA@mail.gmail.com> <5224aa87-30e6-421d-992e-15b72621064e@2ndQuadrant.com>

* 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