Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYruc-0005SX-Ea for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Apr 2021 15:03:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lYrua-0002lV-Fz for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Apr 2021 15:03:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYrua-0002kv-9Y for pgsql-hackers@lists.postgresql.org; Tue, 20 Apr 2021 15:03:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYruY-00023s-2n for pgsql-hackers@lists.postgresql.org; Tue, 20 Apr 2021 15:03:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 13KF3V7V559793; Tue, 20 Apr 2021 11:03:31 -0400 From: Tom Lane To: Andrew Dunstan cc: Alexey Kondratov , pgsql-hackers@lists.postgresql.org Subject: Re: Free port choosing freezes when PostgresNode::use_tcp is used on BSD systems In-reply-to: <519ddb94-f3ac-e9cc-3a61-7003c26f62f8@dunslane.net> References: <20210127213658.GA736@alvherre.pgsql> <55c6c1526b94d2caf54c33262fe00674@postgrespro.ru> <1c506564e2a732ec17790bd8c34f042e@postgrespro.ru> <66bad38beb87fb32952d89602e467444@postgrespro.ru> <82e271a9a11928337fcb5b5e57b423c0@postgrespro.ru> <459595.1618874567@sss.pgh.pa.us> <519ddb94-f3ac-e9cc-3a61-7003c26f62f8@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Tue, 20 Apr 2021 10:59:32 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <559791.1618931011.1@sss.pgh.pa.us> Date: Tue, 20 Apr 2021 11:03:31 -0400 Message-ID: <559792.1618931011@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > On 4/19/21 7:22 PM, Tom Lane wrote: >> I wonder whether we could get away with just replacing the $use_tcp >> test with $TestLib::windows_os. It's not really apparent to me >> why we should care about 127.0.0.not-1 on Unix-oid systems. > Yeah > The comment is a bit strange anyway - Cygwin is actually going to use > Unix sockets, not TCP. > I think I would just change the test to this: $use_tcp && > $TestLib::windows_os. Works for me, but we need to revise the comment to match. regards, tom lane