Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sxAos-008OSd-Br for pgsql-hackers@arkaria.postgresql.org; Sat, 05 Oct 2024 19:52:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sxAop-004LZc-AP for pgsql-hackers@arkaria.postgresql.org; Sat, 05 Oct 2024 19:51:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sxAon-004LXj-KP for pgsql-hackers@lists.postgresql.org; Sat, 05 Oct 2024 19:51:58 +0000 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sxAok-002gWD-4H for pgsql-hackers@postgresql.org; Sat, 05 Oct 2024 19:51:56 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id CBD5D11400E3; Sat, 5 Oct 2024 15:51:52 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Sat, 05 Oct 2024 15:51:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1728157912; x=1728244312; bh=Gtq1zXXloQFG0OebUJ1dARfTbaZPDo9NRqvR7Mo9bOk=; b= b2y06zEXJzZOSelSSeyxVxtxJzFmywd5k4bWf9QsJJrgOifUND9CkdQ1lZv43Uj8 HfWfgT8ShfUyv496PzB2qPTycEekaCikF92NQWqCo9mTymK9JpAiW1QGKZ6m8LQX 2QOGhvaekr3XZOj0ESMjl+45H5Cnl+Cqn0Xywxp8G/gi0RLETjqq+DfyJKxCDGdE MgUaO1taywOr4ZSU9VUtmj2LYwSIfi6A4GkpnB5AdQy+iZdmLa24gLz8gRYqaAoQ 5NzMRJ3FexaV7V/mW6Iz0cId71Ww73FOAScEnpkLtf08dKDxs2xXyxKuYX8AGdCM BpsO0s1NtHJaA+qGEkKTIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1728157912; x= 1728244312; bh=Gtq1zXXloQFG0OebUJ1dARfTbaZPDo9NRqvR7Mo9bOk=; b=F k2yDZSwNCUwZ5I2WxII19FZPbxr9Z2UYZ1tj0oZi3MbeVlacpOgboO4S7IaXjs1w +U0taN9IVLhkNz9d2DDQ/hrn5u4NZDOfK93OCldiQCZhnOW8/HLkweA/ItEz2sDd W7FP5kQNO8JEskl7Wx3X9U6L8zlDge81yA4Vp6C6S4UbGQheDmJtW2zWqm5bOOvm rQR1ZN/JxczMjY/2sv+oDw1jUnex/ywCuvKYdLc6j8iUAO6iNsZteqnX3ORvVioT 032K+CDy5YjZKubuFUesR+cC+ZxjPgZX/m1ZPXdU8KSnSGQPD0U7D0cccq1OXRm2 c7gzh6njBVfk01vLBnjAA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddvhedgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufhfffgjkfgfgggtgfesthekredttder jeenucfhrhhomhepffgrghhfihhnnhcukfhlmhgrrhhiucforghnnhhsnohkvghruceoih hlmhgrrhhisehilhhmrghrihdrohhrgheqnecuggftrfgrthhtvghrnhepkeekhfdtfeej uedukeejueeiveegvdetiefftdfgfffggfeuveefudelgfejleeinecuffhomhgrihhnpe hgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehilhhmrghrihesihhlmhgrrhhirdhorhhgpdhnsggprhgtphhtthhope egpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhs sehpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopegrnhgurhgvshesrghnrghrrg iivghlrdguvgdprhgtphhtthhopehthhhomhgrshdrmhhunhhrohesghhmrghilhdrtgho mhdprhgtphhtthhopehhlhhinhhnrghkrgesihhkihdrfhhi X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 5 Oct 2024 15:51:51 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Heikki Linnakangas Cc: Thomas Munro , Andres Freund , "pgsql-hackers@postgresql.org" Subject: Re: Refactoring postmaster's code to cleanup after child exit References: <835232c0-a5f7-4f20-b95b-5b56ba57d741@iki.fi> <8f2118b9-79e3-4af7-b2c9-bd5818193ca4@iki.fi> <8e9424ae-2537-411a-a4cd-79760494186e@iki.fi> <217d43af-0287-4769-a825-cde4cfa00e6c@iki.fi> Date: Sat, 05 Oct 2024 20:51:50 +0100 In-Reply-To: <217d43af-0287-4769-a825-cde4cfa00e6c@iki.fi> (Heikki Linnakangas's message of "Sat, 5 Oct 2024 14:45:46 +0300") Message-ID: <87ttdq9vl5.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Heikki Linnakangas writes: > On 05/10/2024 01:03, Thomas Munro wrote: > >> It's possible that Windows copied the Linux behaviour for AF_UNIX, >> given that it probably has something to do with the WSL project for >> emulating Linux, but IDK. > > Sadly Windows' IO::Socket::UNIX hasn't been implemented on Windows (or > at least on this perl distribution we're using in Cirrus CI): > > Socket::pack_sockaddr_un not implemented on this architecture at > C:/strawberry/5.26.3.1/perl/lib/Socket.pm line 872. > > so I'll have to disable this test on Windows anyway. Socket version 2.028 (included in Perl 5.32) provides pack_sockaddr_un() on Windows, so that can be fixed by bumping the Perl version in https://github.com/anarazel/pg-vm-images/blob/main/packer/windows.pkr.hcl to something more modern (such as 5.40.0.1), and only skipping the test if on Windows if Socket is too old. The decision to use 5.26 seems to come from the initial creation of the CI images in 2021 (when 5.34 was current), with the comment «newer versions don't currently work correctly for plperl». That claim is worth revisiting, and fixing if it's still the case. - ilmari