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 1iSiWc-0001iA-Sm for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2019 14:12:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSiWb-0003nM-Ld for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2019 14:12:37 +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 1iSiWb-0003nE-DC for pgsql-hackers@lists.postgresql.org; Thu, 07 Nov 2019 14:12:37 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSiWY-0000Zk-CX for pgsql-hackers@lists.postgresql.org; Thu, 07 Nov 2019 14:12:36 +0000 Received: by mail-qt1-x841.google.com with SMTP id g50so2516602qtb.4 for ; Thu, 07 Nov 2019 06:12:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=rbWm1rovWvDRku67gyTU701DFJipfBS1DKMVchJeC3I=; b=IwK62chuCSP4sp04lmkBkVVmmDXBcdJzOn9Zvqt+cil6fPnbheQ39I9As5SvEHXqLB sKSwlVbbqbfDTYJyRyvWxGJtOxlQxaU2h/wcZ39pG+zakq2xJSgHL4+OhmowZ1LSsZw9 jDs+GR5aeCDZaQ7Xzy4DmrC0rwS7zkxUpJT4fNnsRbRLH1edVARaDJHd9BYr6I/vRwo6 7hshjhK8puhupBLo5frpz7XR6ZpY5jBqOFwy7czziz+3Cb9ywedmnmmIvXuKfYTR3ZP9 oelO0QjY/RftxABCNt3sFNHnCepY5Ngse/SO1qrQVta4LLWgUFy1hdINmsmojoCzVlbd DvYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=rbWm1rovWvDRku67gyTU701DFJipfBS1DKMVchJeC3I=; b=JrS7DQIiN9F2sGhjYH+0cSXiQZlR9PMsRcPr0ax7FhEMSTA2q3xvgfPz2fLnWn9qzq L53y5agfCjxlwZXDPOA5X55htOEQPA7k1OME6BxqWSjReyI7/nfVkVH5qUX81EJO5D2A +Pk51w0zG4BvxJOjz7I8Xuus2RWxS8K9CbeWaCaYkmVs+pl/58KyWALpVFVPvgcQ7N/v g+HEF2wvDx2wlVbbXz+yRB7YchkYlBC2O6ducZinfOnxnEhZ9xmzYJyQL5xO8AdKmaqk kQ9MJG2bcgD+Ar046uv+rd7wkFfoXPiRnElxeKZIgA6uEwgKBaogpZClpG6Hjfmnqsz0 ok6w== X-Gm-Message-State: APjAAAUo368zL/5dvGODTI6OgJrOHc+h04qjU/I75O1myjX8zgYhewln Wpj/hyEX9ZV57nF36G806eYbkA== X-Google-Smtp-Source: APXvYqyJIcHVimEx0zln9LyjCyMJFd2v+BXkoWuOQwhcAZx+ABNI0BsP2mXVOXsoyLiPDwiB3utflA== X-Received: by 2002:ac8:31c1:: with SMTP id i1mr4038475qte.197.1573135952757; Thu, 07 Nov 2019 06:12:32 -0800 (PST) Received: from nimloth.alvh.no-ip.org (ip-104-2-52-196.nyc.us.northamericancoax.com. [196.52.2.104]) by smtp.gmail.com with ESMTPSA id q3sm1246254qkf.18.2019.11.07.06.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 06:12:32 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 1A5C03015CB; Thu, 7 Nov 2019 11:12:29 -0300 (-03) Date: Thu, 7 Nov 2019 11:12:29 -0300 From: Alvaro Herrera To: Andrew Dunstan Cc: Juan =?iso-8859-1?Q?Jos=E9_Santamar=EDa?= Flecha , Michael Paquier , Thomas Munro , Tom Lane , PostgreSQL Hackers Subject: Re: TAP tests aren't using the magic words for Windows file access Message-ID: <20191107141229.GA20606@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3aa1787a-e7e2-f118-e9c5-2de5af08603d@2ndQuadrant.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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