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 1j1Gsj-00071b-R9 for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Feb 2020 21:46:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j1Gsi-00050V-9s for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Feb 2020 21:46:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j1Gsi-0004vY-0i for pgsql-hackers@lists.postgresql.org; Mon, 10 Feb 2020 21:46:16 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1Gsa-00077m-PF for pgsql-hackers@lists.postgresql.org; Mon, 10 Feb 2020 21:46:15 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 51C0721FE6; Mon, 10 Feb 2020 16:46:07 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 10 Feb 2020 16:46:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=jXY1/BDY8zlhc2PnYIW08LvUcT4 fGoGxM3zHpcHjwEU=; b=ORhDreH7iWC4TGbrG2/zlYh0fz0BBcoqT159T7YwQoV D4UEoNM/hqEUsSY5tb5liDdpBKPWrpXGX87RzBslnGya6md8Az897zqjVqiwxKz4 ubyhvKwyfWCsNvzdAwqtgqysSipc/BttnmxuW4HA45HbB7a+/wo1tW2YrlllpEJ5 2d6ORcsjcpu+d9bN6+IS9+vgTJqQGC+C927OUTt5Rc+WvHnF23s5mgefbcYVGkLq gZqFeiQmWYT0Xxyc1Kfdo8dNe4x6Ci0ci/dCsrW43svqrg+/A3t0mu4BCQ5KYJau GuydKTs0pRObiEiPMqONPoojB51bmJ8iwhJ/QUwWepQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=jXY1/B DY8zlhc2PnYIW08LvUcT4fGoGxM3zHpcHjwEU=; b=iZQZVV56IKxrxXj95/Lrd3 louqE4HdcW2s21I1KSEow4ZIIPF3qElabffMSYxt8TuWWvZzjD+0EDX4zelrbj9o X9hUNtJEQMvi/I1lWjdsSD76bIVPt5t6EdCcy0+AC7qErDgwYkzishhPlXvXc0Sx pQsSeDel5chcn4l+ORKlVCMR3gqd4rQjjR6AMC8F2Xum6XMM4kzwoVx3QCB6XvFb TTwxUd1C7F7yuwAVqJQuUfxKodsWfDIBApsFnCV84TC2dknLmrxn8Moyz+kGDQSR emeiXlnTlSBgb6gquEPvcBtu81eiQTvhzS6yUX5CyQVkJcZst3WaVLAA9ZQ2ol7w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedriedugddugeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucffohhmrg hinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeeijedrudeitddrvddujedrvdeh tdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnh gurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id DC8103060986; Mon, 10 Feb 2020 16:46:05 -0500 (EST) Date: Mon, 10 Feb 2020 13:46:04 -0800 From: Andres Freund To: Peter Eisentraut Cc: Michael Paquier , Postgres hackers , Sergei Kornilov Subject: Re: pgsql: walreceiver uses a temporary replication slot by default Message-ID: <20200210214604.pnfbunecbpvu224p@alap3.anarazel.de> References: <20200122055510.GH174860@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2020-02-10 16:46:04 +0100, Peter Eisentraut wrote: > On 2020-01-22 06:55, Michael Paquier wrote: > > In the thread about switching primary_conninfo to be reloadable, we > > have argued at great lengths that we should never have the WAL > > receiver fetch by itself the GUC parameters used for the connection > > with its primary. Here is the main area of the discussion: > > https://www.postgresql.org/message-id/20190217192720.qphwrraj66rht5lj@alap3.anarazel.de > > The way I understood that discussion was that the issue is having both the > startup process and the WAL receiver having possibly inconsistent knowledge > about the current configuration. That doesn't apply in this case, because > the setting is only used by the WAL receiver. Maybe I misunderstood. Yes, that was my concern there. I do agree there's much less of an issue here. I still architecturally don't find it attractive that the active configuration between walreceiver and startup process can diverge though. Imagine if we e.g. added the ability to receive WAL over multiple connections from one host, or from multiple hosts (e.g. to be able to get the bulk of the WAL from a cascading node, but also to provide syncrep acknowledgements directly to the primary), or to allow for logical replication without needing all WAL locally on a standby doing decoding. It seems not great if there's potentially diverging configuration (hot standby feedback, temporary slots, ... ) between those walreceivers, just depending on when they started. Here the model e.g. paralell workers use, which explicitly ensure that the GUC state is the same in workers and the leader, is considerably better, imo. So I think adding more of these parameters affecting walreceivers without coordination is not going quite in the right direction. Greetings, Andres Freund