From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Use data directory inode number, not port, to select SysV resour
Date: Fri, 6 Sep 2019 14:26:13 -0400
Message-ID: <14e3c613-6e3c-4908-4873-49898b53100d@2ndQuadrant.com> (raw)
In-Reply-To: <19250.1567784113@sss.pgh.pa.us>
References: <E1i5vc4-0004Lg-4U@gemulon.postgresql.org>
<176e86ba-1a46-9d8c-5ae4-9865a463b411@2ndQuadrant.com>
<19250.1567784113@sss.pgh.pa.us>
On 9/6/19 11:35 AM, Tom Lane wrote:
> Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes:
>> On 9/5/19 1:32 PM, Tom Lane wrote:
>>> Use data directory inode number, not port, to select SysV resource keys.
>> This has caused the 017_shm.pl tests to be skipped on jacana and
>> bowerbird, and to fail completely on my msys2 test system where the Perl
>> has the relevant IPC:: modules, unlike the buildfarm animals.
> I intended 017_shm.pl to be skipped on Windows builds; it's not apparent
> to me that that script tests anything useful when we're not using SysV
> shared memory.
>
> I don't quite understand what the msys2 platform might be doing with
> these IPC modules. Do they actually do anything, or just fail at
> runtime? If the latter, maybe we can add something to the eval{}
> block to check for present-but-doesnt-work?
Given your stated intention, I think the simplest way to get it is just
this, without worrying about what the perl modules might do:
inline patch 1: src/test/recovery/t/017_shm.pl (+0/-0 lines) download inline-1.patchdiff --git a/src/test/recovery/t/017_shm.pl b/src/test/recovery/t/017_shm.plindex a29ef78855..dc0dcd3ca2 100644--- a/src/test/recovery/t/017_shm.pl+++ b/src/test/recovery/t/017_shm.pl@@ -18,7 +18,7 @@ eval { require IPC::SysV;
IPC::SysV->import(qw(IPC_CREAT IPC_EXCL S_IRUSR S_IWUSR));
};
-if ($@)
+if ($@ || $windows_os)
{
plan skip_all => 'SysV shared memory not supported by this platform';
}
cheers
andrew
--
Andrew Dunstan 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-committers@postgresql.org
Cc: andrew.dunstan@2ndquadrant.com, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Use data directory inode number, not port, to select SysV resour
In-Reply-To: <14e3c613-6e3c-4908-4873-49898b53100d@2ndQuadrant.com>
References: <E1i5vc4-0004Lg-4U@gemulon.postgresql.org> <176e86ba-1a46-9d8c-5ae4-9865a463b411@2ndQuadrant.com> <19250.1567784113@sss.pgh.pa.us> <14e3c613-6e3c-4908-4873-49898b53100d@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