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 1iSinW-0002Jx-NT for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2019 14:30:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSinV-00068t-HP for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2019 14:30:05 +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 1iSinV-00068B-8J for pgsql-hackers@lists.postgresql.org; Thu, 07 Nov 2019 14:30:05 +0000 Received: from mail-yb1-xb43.google.com ([2607:f8b0:4864:20::b43]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSinS-0000hh-37 for pgsql-hackers@lists.postgresql.org; Thu, 07 Nov 2019 14:30:04 +0000 Received: by mail-yb1-xb43.google.com with SMTP id d95so505216ybi.8 for ; Thu, 07 Nov 2019 06:30:01 -0800 (PST) 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=S1Vtp6afhiQn8vC0C44YAhYvXAtHFyIS1oAYD0RgX7E=; b=WoqI9KkQ36op+YTRjlycG/1gAD/qwiTF931rzrAIz+IhBzfLHEJBYVPkPmXT2Zp7AI HdHDd+fUlayDoBM4L7mFVdZyB/LiaQDRm6i2Hj5iV9KVTJd3uGWEFOEarjMhWOaONBNT 1hsUwO5LpsYpQfabAXW/Uvg+oNmbke7q8FXbwoI1Y/lt0AhvBiv6rSNezjHfg1GHUJG2 un2bmD90ITVkpSFPt2SZalOWl+yToxkFRH2csANq4+o5OwEnoeI3zPt4BbhzzHnvwWxd LUgzOZ04tai/iwr36ZYeOE9Trxgl8Pw2SJuzONLMsryCyfwad6uIPpr3lRue/HtuPVug al9Q== 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=S1Vtp6afhiQn8vC0C44YAhYvXAtHFyIS1oAYD0RgX7E=; b=uXJ4yeM7ceUggiEPmTfsGmpmERVFBL7q4AAlOrjYf2abCL4W0VamAcy1CX4MRRHy/T b3CB4gVXQRMgxmfZxiq5fIWxMuxbCqBmmTp4yiIkRIjdS5VwI2P/tJhjPGlAf62onQKO L9mmwLdk9NvsD675lEbVlXBy+1Jq6NS4EFDMT8gsQn1I621rZQdiB40m2HrPQgNjWcfT G8uLpIJ7Au0Xostn88Dmzo1oWOmuT3Mq872BGQit/EeXnA2qCFE0AFixk9SMWt5JDLgV 80YTec+7R8+euIovrAeDhYX7x4p7TnPFh+zRLGpjuepCAtYulwHLMMwPOcO2J+Us8TdS gYxA== X-Gm-Message-State: APjAAAX5zszN7A554C650tE9s9yd7ZtaPknc/6TzWKTqXPcktk7C3qvj 3rRHaCgq+MOOvQ0bR8HKaG9NzlkNQ6Xd6TP8o5NGOIlSnQPtYZQ4ez3/5h/+x5gmRqp961GIscJ zQ8TWlTy83Mu6o188XM13LhhzKzf6KT6OQRQGUzRrYFJjUkMHdkCup2H100Z/3huUMORjyzBlI8 fnap9IuKQ8FRp/0gHqAEs99zE= X-Google-Smtp-Source: APXvYqw7xdjlazoNKEtIifqycT2SUnbTEbJlYkrF9rFrfVLWe8u9pzLMU30HlpM6UUOO9HBWvrulzw== X-Received: by 2002:a25:d8c5:: with SMTP id p188mr3532512ybg.414.1573136999481; Thu, 07 Nov 2019 06:29:59 -0800 (PST) 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 l127sm1262351ywb.21.2019.11.07.06.29.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Nov 2019 06:29:58 -0800 (PST) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: TAP tests aren't using the magic words for Windows file access To: Alvaro Herrera Cc: =?UTF-8?Q?Juan_Jos=c3=a9_Santamar=c3=ada_Flecha?= , Michael Paquier , Thomas Munro , Tom Lane , PostgreSQL Hackers References: <20191107141229.GA20606@alvherre.pgsql> 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 hp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0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20191107141229.GA20606@alvherre.pgsql> 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 11/7/19 9:12 AM, Alvaro Herrera wrote: > 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 > ... Yes, that's present on jacana and fairywren (not on frogmouth, which is running a very old perl, but it doesn't run TAP tests anyway.) > > 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?). > Maybe we need "rwd"? cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services