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.96) (envelope-from ) id 1vrvXV-00DJin-1l for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Feb 2026 10:09:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vrvWV-001Gcr-18 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Feb 2026 10:08:11 +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.96) (envelope-from ) id 1vrvUQ-0014R8-22 for pgsql-hackers@lists.postgresql.org; Mon, 16 Feb 2026 10:06:02 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vrtNq-00000000qq2-3lpJ for pgsql-hackers@postgresql.org; Mon, 16 Feb 2026 07:51:09 +0000 Received: from [10.0.2.15] (unknown [130.41.208.2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4fDw1x1Rl7z49Pxj; Mon, 16 Feb 2026 09:51:01 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1771228263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3xMfSVwR6ofznYiOMteI1hCERZHggDXPW5EXv1a4lww=; b=Z1jrw25xLr5E2oCiz0P5kcpBLKe+zQaAwXEHfBKPxQHzmjAvKdvGjmVZzM0dCdnrVIk83W cFoCI8IvekxJRV46vzsgn+B3oQOV5U1JU5bHG0L3I03Zv+IcCHdIP7cvph2rYtD9g96jhp v70lOIXJyUdXt61AAB0i6LQuZqCi48sHIBj/t31j6QxyG8BUKcJD3Y+Lai03tF9BrjQskt IzzlPR9RFaO1wwhQl2dsf0x2R5H5pCL9Uwp3kDaF6813cGOSR+VOqFnXQpwGTHaWpKTWjw PX3sBA8zPOq1fYwtEESjWrLM9i+9jBxE4hs9SHJh/yeCLN0sOp0n1BKSBvW+ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1771228263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3xMfSVwR6ofznYiOMteI1hCERZHggDXPW5EXv1a4lww=; b=pWGr7G4IyvwKl7ed4wqdU07OBFH73/+P0LPKG9WTXkJArfVXQ4oW0DH46sjT0+kAJo7EMs XhZz+lHeAAJQKVrC39yVaa1KRBZqyc3b6U4wOijVo+Ipt/bG07KchF+6BD/+7WaPnN0AoF EqVJCrdvFzWjlYCS+oc980dCZRfkfolynxQk+gRPZMKKrhIcJRgCYpOAdGJ2es9gGdAdk0 Jxp5eqhZBjyz6aksbti23eUqkexPyztFDK+inDQdyotd6wu4j0e0rliSBIlxsvAKaJMW9Z qmaMaXdpslO+H9TwaYvtfmiSG1GwpdozzehstB1Ua6AlmqAJdoOQsxiEwIZmhQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=lahtoruutu; cv=none; t=1771228263; b=Oq+PDzZMY+4I9GfboMh24jzZSFdNw5qoBoQAWr+JPeuwHLcBE/e7f+DM4rF6TXQzit4VON emnYvYqZXNH/XpowQWu4UCQsE9u+mg25PqG/tRLXuuCNHx5AOYktaUhFp4vxrpET+WvMrg AkSqTr8DWtPcoIe8KW00m4p9TwYCFiqE7MsvcGH7xkZ5JvyQ6fpMNEDnpwQUOj1Z0ub9gF jXkeIZUr4TfOXrBO8I5UQO4j9lZHwhhm7XLxMbVuvybQpFlIOkwf6AvOZHxkr/wgDQ2D5b JghbkLgM1vBZn5zvthN65xHqb55prZXUUME2a1BeBgUpXAdDrcrGS7OFFiFlgg== Message-ID: <5f77dc57-0753-4177-a917-e56a875fdff0@iki.fi> Date: Mon, 16 Feb 2026 09:51:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Refactoring postmaster's code to cleanup after child exit To: Michael Banck Cc: =?UTF-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= , Thomas Munro , Andres Freund , "pgsql-hackers@postgresql.org" References: <8e9424ae-2537-411a-a4cd-79760494186e@iki.fi> <217d43af-0287-4769-a825-cde4cfa00e6c@iki.fi> <87ttdq9vl5.fsf@wibble.ilmari.org> <4001dd8d-a65e-4c8d-900c-bdacd55b083a@iki.fi> <69917fde.df0a0220.33b3c5.f45aSMTPIN_ADDED_BROKEN@mx.google.com> Content-Language: en-US From: Heikki Linnakangas In-Reply-To: <69917fde.df0a0220.33b3c5.f45aSMTPIN_ADDED_BROKEN@mx.google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 15/02/2026 10:11, Michael Banck wrote: > On Tue, Oct 08, 2024 at 12:55:00AM +0300, Heikki Linnakangas wrote: >> In the meanwhile, here is a one more version of the test patches, with a >> SKIP that checks that IO::Socket::UNIX works. > > I've only realized recently, but those postmaster tap tests have been > failing during Debian package build (see e.g. [0]) on hurd-i386/amd64 with > > |send: Cannot determine peer address at t/002_connection_limits.pl line 136. > > This wasn't widely noticed because both architectures are on the (not > small) list of arches where test suite failures are ignored[1] but I > think nowadays it is the only (or one of the very few) remaining > issue(s). I encountered it now when I tried to turn on > --enable-tap-tests on fruitcrow. > > The Perl code run through strace shows it runs connect(), then > getpeername() and then sendto(), as seen here[2]. However, getpeername() > on Unix sockets is not implemented on the Hurd yet[3] (granted, FSVO > "yet", the issue is 20 years old). I've opened an issue in Perl asking > to work around this here: https://github.com/Perl/perl5/issues/24195 > > Would something like the attached be acceptable in the interim to have > this test be skipped on the Hurd as well? Hmm, so is the "$sock->send('foo');" actually necessary, if the error occurs on getpeername() already? Where does the getpeername() call come from? It would be nice to silence that failure one way or another. If we go with this approach, would need a comment at least to explain it. It seems a little awkward to send garbage to the server for this. Could we replace the send() with a non-blocking recv() or something? - Heikki