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 1i6J2M-0003lZ-Of for pgsql-committers@arkaria.postgresql.org; Fri, 06 Sep 2019 18:32:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i6J2K-0004pn-E7 for pgsql-committers@arkaria.postgresql.org; Fri, 06 Sep 2019 18:32:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i6J2K-0004pM-2c for pgsql-committers@lists.postgresql.org; Fri, 06 Sep 2019 18:32:44 +0000 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i6J2G-0001SI-PQ for pgsql-committers@lists.postgresql.org; Fri, 06 Sep 2019 18:32:43 +0000 Received: by mail-ot1-x343.google.com with SMTP id c7so6625120otp.1 for ; Fri, 06 Sep 2019 11:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=va61/RgEdGq8doPkjnWL9zoN7FLW/Rkba9G3dWCf1U4=; b=yJ+govhVQiuxFwn1AMz3tU5/mnFBCg742/B6/MctIUkHr0Cx2MUKDZRRQWVluOEaQV O46ub55s8LYqOGiqwixI2QJRSW066VPge/Yc9T9OuKdxLiT+ndkLgPeEZyZtUQgsiYH+ IDnqB0qy7P6Ll3hhs6du1I4ag3EDdNsCIBrywmvbyK4r8RNRLKZy1SCC+JRYcfPIQl0p Kx/KzbBQO4nZAyEBilQHMAI6mqd7UShstA6axPhT7pbHGOTcD1gmQywWnk9xjcIFp82Z uf0gaCq0vdNchdK+KxSoydZHZipg/X+gDGHw+Yi25E+Jjqh6wvw35w0Cojwb6jbFPg20 1chg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=va61/RgEdGq8doPkjnWL9zoN7FLW/Rkba9G3dWCf1U4=; b=Y65R0Laa2gk3KJ+flwGJDN2n6dP6+eRW4IWAi0ewfAN+Ga4VCfZMyaFcie1O8ZH99O PRvBUP/zeXHEdHgROJmub01KV33M5WwxKEv5NkNhbg7Rlzmbp4t17rBnulj/tuW+eLri RpmvWcgZpGGbo0fhBo/102SKET+R1V2gv7bRqcY5RyIBxruHP4UzSC1f5CbkTWB9KQHa 9AdlHbPuk81sdocP30eex1TDtbDsV3dVFSt/cRAX1eX6Xup8hU84QkHeIEC+zUKrcAqJ SWP5ghPma82xUxZ1s5d/YzJSJxjJqsMeNHWPsAnJDYLq/Vckobrb08li9iALtl9J0V9/ 26MA== X-Gm-Message-State: APjAAAXFvBf0o62ag5AGsXWdmqz90ia8mUD4Q9eNoavr6LR1vhQeqT5z 2wfdPHqxhpRE8VZUje5H61RQU761FUcrFXbt07n7Gajfxntxm/sPPKDfy4viQJtJK3f3lZKYvpc f8NWHSaP2qApwC1rFOgemF2luBrNxiSKMAMOK9PyOGEb4+8Q50Pp6X9HHwR2ZGr1wfQFtp1nSjM EHi62BpwxREJh3+vRktV9yvZEKhJ8= X-Google-Smtp-Source: APXvYqxXobizhgndzEK4KFGBruBaN+MsL5+ZnVhxdLB3/FTRN9L8Rdwa+mwDA5tgg+sY8ku8GmUb2g== X-Received: by 2002:a9d:6d88:: with SMTP id x8mr8490553otp.337.1567794375319; Fri, 06 Sep 2019 11:26:15 -0700 (PDT) Received: from [192.168.10.146] (99-10-92-30.lightspeed.rlghnc.sbcglobal.net. [99.10.92.30]) by smtp.gmail.com with ESMTPSA id d38sm2567563otb.7.2019.09.06.11.26.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Sep 2019 11:26:14 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pgsql: Use data directory inode number, not port, to select SysV resour To: Tom Lane Cc: pgsql-committers@lists.postgresql.org References: <176e86ba-1a46-9d8c-5ae4-9865a463b411@2ndQuadrant.com> <19250.1567784113@sss.pgh.pa.us> Openpgp: preference=signencrypt Autocrypt: addr=andrew.dunstan@2ndQuadrant.com; prefer-encrypt=mutual; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNL0FuZHJldyBEdW5zdGFuIDxhbmRyZXcuZHVuc3RhbkAybmRRdWFkcmFudC5jb20+wsCY BBMBAgBCAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAUJDyV6hBYhBOQ+WEYd/Hy/RGkV pZn6f8tZ/DuBBQJcH/EVAhkBAAoJEJn6f8tZ/DuB7BEH/iDWZEbVft2m2MT6SPjARzTupt/l xLLZ/Cl6n2US2hov5+fBbnR5xvECk/YCOfG9ICvKNlpFjceqNLRKStd8cmndnI+kDw91uNM2 hpL4aJMeW65XCHvqXlOLSw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 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <19250.1567784113@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/6/19 11:35 AM, Tom Lane wrote: > Andrew Dunstan 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: diff --git a/src/test/recovery/t/017_shm.pl b/src/test/recovery/t/017_shm.pl index 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