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 1j1kL0-0006Yd-Fl for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Feb 2020 05:13:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j1kKz-0006Wi-4Z for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Feb 2020 05:13:25 +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 1j1kKy-0006Wa-Oa for pgsql-hackers@lists.postgresql.org; Wed, 12 Feb 2020 05:13:24 +0000 Received: from [64.147.123.25] (helo=wout2-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1kKw-0004Un-B7 for pgsql-hackers@lists.postgresql.org; Wed, 12 Feb 2020 05:13:23 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id E892F491; Wed, 12 Feb 2020 00:13:10 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 12 Feb 2020 00:13:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=0wPUKhembvUrnwLGJ5s9gkE7N4n 0MliLbAnqzjCWbrU=; b=XIfCkCOPZLax9ncLCQ0lq4IycFQ5S+MjA4nb919bsm5 tlL7yPpuYLfwEjRIcWN55brexJ+2dVPu9mP/VJOsJnTyg1ZWzL/GFRTv/mbPkSzz 3WkEyuUONRL95tfV76y1J32UjxUf27wBrJBxhvF+dbDmCondMGv+Y/fNYy1nXjmy qtSqwyspT/2rHygbT6z07pv+vWF3w1K6tKd0c4p/a4aolXHkl0Xfd5aCNA+vfY8O O7Dicy+HFP8h3qiwb6/cOBQMFgolNqvMru7Ayf3ZorQcEHAHXU3Ylbl1rW/rW86K 928J1OJrptU7UYeqwM9xSi/so+yFfQBnpjgE97VqVpg== 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=0wPUKh embvUrnwLGJ5s9gkE7N4n0MliLbAnqzjCWbrU=; b=uGEtz4VagNXKyg+kae3tJZ RUkJYKcGd4yQxliGGfWyEWXGKI+Qsvh6N8LZ16JsH6IIe5B3OYsvSVsk2xKDyToL ufZyRkZek18wWr119WNAIH1KZwVEuDK6e6geAiCmT+Um/xNIpvjxbCKrs0VNmZEb J6Jhr3uETQxXqGQLhwVenn6Dhsn3SZlNWHpQv4MYw3eocoWXVvLe1Wr0xaHyhhz/ eeSnClKonStGRgVokC6q2gaoDFixxRZwokcDQmJerdtRFWzkWl+Za5rxRN1IWDnr +uZhowX/2nPkzYTeoOBSVy08KnVoUUnHxmNquYIwTUEqGBeOMCxVov7AWQeBfgrw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieeggdejhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesph grqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id BC0C430606E9; Wed, 12 Feb 2020 00:13:08 -0500 (EST) Date: Wed, 12 Feb 2020 14:13:06 +0900 From: Michael Paquier To: Andres Freund Cc: Peter Eisentraut , Postgres hackers , Sergei Kornilov Subject: Re: pgsql: walreceiver uses a temporary replication slot by default Message-ID: <20200212051306.GB1464@paquier.xyz> References: <20200122055510.GH174860@paquier.xyz> <20200210214604.pnfbunecbpvu224p@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="A6N2fC+uXW/VQSAv" Content-Disposition: inline In-Reply-To: <20200210214604.pnfbunecbpvu224p@alap3.anarazel.de> X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.25 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Feb 10, 2020 at 01:46:04PM -0800, Andres Freund wrote: > 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. parallel workers use, which explicitly ensure that the GUC state is > the same in workers and the leader, is considerably better, imo. Yes, I still think that we should fix that inconsistency, mark the new GUC wal_receiver_create_temp_slot as PGC_POSTMASTER, and add a note at the top of RequestXLogStreaming() and walreceiver.c about the assumptions we'd prefer rely to for the GUCs starting a WAL receiver. > So I think adding more of these parameters affecting walreceivers > without coordination is not going quite in the right direction. Indeed. Adding more comments would be one way to prevent the situation to happen here, I fear that others may forget this stuff in the future. -- Michael --A6N2fC+uXW/VQSAv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl5DiWIACgkQnvQgOdby QH0WRA/7B5hdy3hOVth3yrgptNWEDOG3vI/r8AIzhAosqy//UngDnqve+SrNp7pm bnBMjM2LzoPppKnJVCZvfVZe/M723+tlw1gtq3GSmSYtS6A8l73YnUTbwoGPNprd D3UW6a5F3xBTuti6a9ecZ1gUYWf+NOZ1ufYO6UTf6Oh/d6URjhkvYH2apphbLJrs OBYOELHTxIEAxtJ+wbiPJD5HK6d+cZbAQFLjrxCiy10WjFEcOg4tGc3U6ttRMtum gzMke8sseLAxnqAzFMK2huKAHZZNSwd60SOC6mxeZFjFnlamAXqTSQkII/c3PoNH 3P31+geoesEGp0KYDY7sQbFjylqfRCetV2DOxJxAW+iKyq7AxNLibkff/rhEb/j5 YRIHHjJOzHWF2Mp6LJMb1uFSfAYuVtJUBSARpJSWKcK/I4UV100Oh2iy/1YO+pn9 +V8QEehR7WTWzLN7jPJj4Qrz2PywvBhUDo/ssM9z9R38ARi65GBytd44rteXOMVw lrBlJnbLrxRt5ggD4LGtdGboigHrnVlkM3JdmYXRx5S76QKRo7YbEozZ+FjpAt4m YQYH9sCFdqVqVDtjd64873AbmBb5Z/OOwPU3RB7No1fCZgyPQj3+u/HGnDNJC8FM 0i5CdpawwgtVYYRp1RBU7djPoQs2iaZ2HCVIUyaeS/Lqz1bUCNg= =975+ -----END PGP SIGNATURE----- --A6N2fC+uXW/VQSAv--