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 1mVx7S-0001mN-Od for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Sep 2021 14:33:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mVx7R-0003F6-Nx for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Sep 2021 14:33:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVx7R-0003Em-0l for pgsql-hackers@lists.postgresql.org; Thu, 30 Sep 2021 14:33:05 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVx7O-0005ex-H1 for pgsql-hackers@lists.postgresql.org; Thu, 30 Sep 2021 14:33:04 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 914055C0238; Thu, 30 Sep 2021 10:33:01 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 30 Sep 2021 10:33:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=pQ0xRwTJ5t0vV4mggQz/nNy9gGQg80d6LI5an+Fnb28=; b=TXrjoObt lIUz2xtFbxK7zUmByx9URvyWxTX/l7PRh7UGedemIJ0bComwEkanJalcnac2TblN sQ8fgsbIhI6ayymgeNODq9XBk5tkhpzv/3bNhT+ITxHTfvZu8XwI+Bi7Og32G6wj pm8Hng8QFjjTEqmUsC3GVwbqEJzpm1Xu0yLvyGqoSNreuCWvEM4kkqKEUTnpelyk tueJlg8xxHFdIVpA96TsPOYYica3ID20ZxzqlfmJbGGMqdKOJnuxqjPz4bB9yhUO mqcAn+GKb0RqMJcBGsuh1t7YLWl+YCH9ERn8LFMoy2kIewJjEW5JFmJ/y43ft3r/ /JL0yRMXGaXwqQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudekgedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Sep 2021 10:33:00 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 8E0D02A06AB; Thu, 30 Sep 2021 11:32:57 -0300 (-03) Date: Thu, 30 Sep 2021 11:32:57 -0300 From: Alvaro Herrera To: Tom Lane Cc: Andrew Dunstan , "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 Subject: Re: prevent immature WAL streaming Message-ID: <202109301432.mou5kmj3h2r6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3060991.1633012112@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Sep-30, Tom Lane wrote: > Andrew Dunstan writes: > > 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. > > Yeah, I was thinking along the same lines yesterday. The fact that > pre-commit testing failed to note the problem is exactly because we > have this random difference between what works by default on Unix > and what works by default on Windows. Let's close that gap before > it bites us again. +1 > There's still the issue of these tests overriding postgresql.conf > entries made by init(), but maybe we can live with that? I vote to at least have has_archiving=>1 set wal_level=replica, and potentially max_wal_senders=2 too (allows pg_basebackup). -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/