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 1hLdYo-00059d-5V for pgsql-hackers@arkaria.postgresql.org; Wed, 01 May 2019 00:57:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hLdYm-0002Cw-6J for pgsql-hackers@arkaria.postgresql.org; Wed, 01 May 2019 00:57:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLdYl-0002Cp-DZ for pgsql-hackers@lists.postgresql.org; Wed, 01 May 2019 00:57:19 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLdYi-0006t9-76 for pgsql-hackers@postgresql.org; Wed, 01 May 2019 00:57:17 +0000 Received: by mail-pf1-x42b.google.com with SMTP id z28so2613056pfk.0 for ; Tue, 30 Apr 2019 17:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7emWNBJ7b8IbSTTi2MO46YAcMC9eL56JBlIJTbWiFhQ=; b=Wyxo/5cDhx7x6kpbefFXmeUHvkcIrmZ4KMPpeAHH0BOxfXzivPUbkYBOCnYSBYj+O3 dRT9ytZFPV5onWY3LoiExCjhrokVH6eSYeMarY8l+vDRmE7dh3uJHHxavVxMxA6C2sgz GVpkIdMA3708bmIJlaaXpYh6QaxZDd8xKQuGs= 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7emWNBJ7b8IbSTTi2MO46YAcMC9eL56JBlIJTbWiFhQ=; b=YKuGR0pPQC63/DA+Eu4EoJqoym4QUhJM5uRsuwV1pwMmM7BGUnte0y9CdWqmKRyCM9 4vgBTb9H5Uadkcz5jwsybApdgRS3vS3YaSUvV0O39RSMhmclwz8tOYJiI0QEFqMIF9Kn QbUELNe9t45Yxg6JYL215J6UFKeSWGpK2UoszcRG0Oi/la/WKyBIT56ycw4s+WV24V0q Yt1ryxfAhXKrv23GCyXxXNvEvBxNsg6pgKDoMMAvww/2igBZmFWdlOr/YIwW5IqXWXPW iToqlilAYtB2mgscBPMc1kW90HGaPNZ/s33sYPH++RWMWW927E/giCfydySD/KiRfnLk 2hGw== X-Gm-Message-State: APjAAAWDg9L7754xkyOIu2u6cP5QW+g1J/mBBF3eucAsxn2Fz+nlNG8m WYJizzjrEdmovDD2jk9oYrEX0g== X-Google-Smtp-Source: APXvYqyLLOiqkc3Ut5d2xcNy+5GaWyZ5Q73vfsxhjZg6eiwbABLSJl/rYiHuyPpvHRSjHw6E5P/PlQ== X-Received: by 2002:a63:5466:: with SMTP id e38mr71798886pgm.340.1556672234578; Tue, 30 Apr 2019 17:57:14 -0700 (PDT) Received: from rfd.leadboat.com (108-233-125-46.lightspeed.sntcca.sbcglobal.net. [108.233.125.46]) by smtp.gmail.com with ESMTPSA id v12sm12955243pfm.186.2019.04.30.17.57.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2019 17:57:13 -0700 (PDT) Date: Tue, 30 Apr 2019 17:57:11 -0700 From: Noah Misch To: Thomas Munro Cc: Daniel Gustafsson , Kyotaro HORIGUCHI , "9erthalion6@gmail.com" <9erthalion6@gmail.com>, "sfrost@snowman.net" , "pgsql-hackers@postgresql.org" Subject: Re: [HACKERS] Weaker shmem interlock w/o postmaster.pid Message-ID: <20190501005711.GA503996@rfd.leadboat.com> References: <20190331224233.GC891537@rfd.leadboat.com> <20190404020543.GA1319573@rfd.leadboat.com> <20190404145319.GA1720877@rfd.leadboat.com> <20190408064141.GA2016666@rfd.leadboat.com> <20190411062228.GB2620174@rfd.leadboat.com> <20190421165903.GA3709194@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Apr 30, 2019 at 10:47:37PM +1200, Thomas Munro wrote: > On Mon, Apr 22, 2019 at 4:59 AM Noah Misch wrote: > > On Thu, Apr 18, 2019 at 04:30:46PM +1200, Thomas Munro wrote: > > > This causes make check-world to deliver a flurry of pop-ups from > > > macOS's built-in Firewall asking if perl should be allowed to listen > > > to all interfaces [...]. > > > > That is unfortunate. The "Allowing specific applications" section of > > https://support.apple.com/en-us/HT201642 appears to offer a way to allow perl > > permanently. Separately, it wouldn't cost much for us to abandon that check > > on !$use_tcp (non-Windows) configurations. > > My system is set up not to allow that and I suppose I could go and > argue with my IT department about that, but I'm interested in your > second suggestion if the test is in fact not serving any useful > purpose for non-Windows systems anyway. Do you mean like this? > > --- a/src/test/perl/PostgresNode.pm > +++ b/src/test/perl/PostgresNode.pm > @@ -1098,17 +1098,12 @@ sub get_new_node > # native Perl (https://stackoverflow.com/a/14388707), > so we also test > # individual addresses. > # > - # This seems like a good idea on Unixen as well, even > though we don't > - # ask the postmaster to open a TCP port on Unix. On Non-Linux, > - # non-Windows kernels, binding to 127.0.0.1/24 > addresses other than > - # 127.0.0.1 fails with EADDRNOTAVAIL. > - # Deleting that comment paragraph isn't quite right, since we're still testing 127.0.0.1 everywhere. The paragraph does have cause to change. > # XXX A port available now may become unavailable by > the time we start > # the postmaster. > if ($found == 1) > { > - foreach my $addr (qw(127.0.0.1 0.0.0.0), > - $use_tcp ? qw(127.0.0.2 127.0.0.3) : ()) > + foreach my $addr (qw(127.0.0.1), > + $use_tcp ? qw(0.0.0.0 127.0.0.2 127.0.0.3) : ()) This is what I meant, yes. > { > can_bind($addr, $port) or $found = 0; > }