From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Thomas Munro <thomas.munro@gmail.com>
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, 7 Nov 2019 11:12:29 -0300
Message-ID: <20191107141229.GA20606@alvherre.pgsql> (raw)
In-Reply-To: <3aa1787a-e7e2-f118-e9c5-2de5af08603d@2ndQuadrant.com>
On 2019-Nov-07, Andrew Dunstan wrote:
> On 11/7/19 8:53 AM, Alvaro Herrera wrote:
> > That's a curious test to try, given that the module is called
> > Win32API::File.
>
> The patch says:
>
> + require Win32::API;
> + Win32::API->import;
Oh, you're right, it does. I wonder why, though:
$ corelist -a Win32::API
Data for 2018-11-29
Win32::API was not in CORE (or so I think)
$ corelist -a Win32API::File
Data for 2018-11-29
Win32API::File was first released with perl v5.8.9
v5.8.9 0.1001_01
v5.9.4 0.1001
v5.9.5 0.1001_01
v5.10.0 0.1001_01
...
According to the Win32API::File manual, you can request a file to be
shared by passing the string "r" to svShare to method createFile().
So do we really need all those extremely ugly "droppings" Juanjo added
to the patch?
(BTW the Win32API::File manual also says this:
"The default for $svShare is "rw" which provides the same sharing as
using regular perl open()."
I wonder why "the regular perl open()" is not doing the sharing thing
correctly ... has the problem has been misdiagnosed?).
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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, andrew.dunstan@2ndquadrant.com, juanjo.santamaria@gmail.com, michael@paquier.xyz, thomas.munro@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: TAP tests aren't using the magic words for Windows file access
In-Reply-To: <20191107141229.GA20606@alvherre.pgsql>
References: <3aa1787a-e7e2-f118-e9c5-2de5af08603d@2ndQuadrant.com> <20191107141229.GA20606@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