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 1mVwth-0000yJ-IS for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Sep 2021 14:18:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mVwtg-0004Hl-I1 for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Sep 2021 14:18:52 +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 1mVwtg-0004Hd-AC for pgsql-hackers@lists.postgresql.org; Thu, 30 Sep 2021 14:18:52 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVwtc-0006zp-5i for pgsql-hackers@lists.postgresql.org; Thu, 30 Sep 2021 14:18:51 +0000 Received: (Authenticated sender: adsend@dunslane.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 14E5A4000E; Thu, 30 Sep 2021 14:18:41 +0000 (UTC) Subject: Re: prevent immature WAL streaming To: Tom Lane Cc: Alvaro Herrera , "Bossart, Nathan" , Kyotaro Horiguchi , "andres@anarazel.de" , "masao.fujii@oss.nttdata.com" , "pgsql-hackers@lists.postgresql.org" , "mengjuan.cmj@alibaba-inc.com" , "Jakub.Wartak@tomtom.com" , Ryo Matsumura References: <202109291443.dxsnnji7a4dq@alvherre.pgsql> <3000074.1632947632@sss.pgh.pa.us> <06126430-07db-7051-a4c7-17edbe4ac34e@dunslane.net> <3003011.1632950979@sss.pgh.pa.us> From: Andrew Dunstan Message-ID: <97ccf47e-e4f9-28b6-e780-83821f1da69c@dunslane.net> Date: Thu, 30 Sep 2021 10:18:39 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <3003011.1632950979@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/29/21 5:29 PM, Tom Lane wrote: > Andrew Dunstan writes: >> On 9/29/21 4:33 PM, Tom Lane wrote: >>> which looks like a pretty straightforward bogus-connection-configuration >>> problem, except why wouldn't other BF members show it? >> This: >> ... >> doesn't have "allows_streaming => 1". > Oh, and that only breaks things on Windows, cf set_replication_conf. > > ... although I wonder why the fact that sub init otherwise sets > wal_level = minimal doesn't cause a problem for this test. > Maybe the test script is cowboy-ishly overriding that? > > Regardless of this problem, I think we should simply call set_replication_conf unconditionally in init().  Replication connections are now allowed by default on Unix, this would just bring Windows nodes into line with that. The function does have this: $self->host eq $test_pghost    or die "set_replication_conf only works with the default host"; I'm not sure when that wouldn't be true. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com