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.92) (envelope-from ) id 1jEktF-00056e-3X for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2020 02:26:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEktD-0002qc-Qr for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2020 02:26:31 +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 1jEktC-0002qS-CQ for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2020 02:26:31 +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 1jEkt7-00028M-Ix for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2020 02:26:29 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 1505B5C03A9; Wed, 18 Mar 2020 22:26:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 18 Mar 2020 22:26:23 -0400 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=fm1; bh=1ciC9PrRWg+jguJvfhXuJkRIUEz 5p+OBf2zLwfCVIl8=; b=NUiZRZhYaHCvp78lvqK2EACBOYWMGHQpSaocd7usrHM 09hmpqjJSVDUecibwqLxEFEJDpPtyhs7bApVRHflw+HbgSeyuDEZoBwyfY75oNJ2 mH34b55I/14RYAcQ232+uqdFKWHwO5fm44A6vhDAixlaUqHlqoSBSw+BANyav5V7 LhryZci5Uxq/ZWdNQCGdarJM5I0qhpC7hSL+EJzP/J664k06t8q574Yf1YAhX10N Q29atuUcIF3uRfD0mv7Agn/CILGIMnFt0moOf/HGudmxEj2478U5YdVrTjGnzZcb u1gzVjEhLiGtIyOnkYkiQvtenkoRVcxmQyP9CVKFdvQ== 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=1ciC9P rRWg+jguJvfhXuJkRIUEz5p+OBf2zLwfCVIl8=; b=k3HuV3yTmqpcyRJ37EPjS+ zVXz4DMVmzNh8Nyc4aymhymcorJfUHjeSWUa87VI9x/LJXGSPjoR1h6h6b2DbQvY Fyexvt15CIGVr2nTpHWzud5Pt8EA9yYxpW0Jf9691ixLaGslEBwsKtuGJDbj6dGR psG1NagMGL92UZOnoQBNbrMxtwLkG+eqoPucDfa4O1hg53i66Os3FwK8lotUk9Pr 0gwAcoQP6Vzs0HjpHuDTAFha5eRO0KRGwGVKwCcSR6aJCHa2BJbupMJMyJCH90+l ByDi8wnSka+D5ByMMXKo7wDqblsbKdwG3rd7NVZXeptvTb5O7oWMHm6+EUtiMebw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudefkedggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecu kfhppeduudekrddvgedurddvgeekrdduudeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (mp76f1f874.ap.nuro.jp [118.241.248.116]) by mail.messagingengine.com (Postfix) with ESMTPA id 4584E3280059; Wed, 18 Mar 2020 22:26:20 -0400 (EDT) Date: Thu, 19 Mar 2020 11:26:17 +0900 From: Michael Paquier To: Sergei Kornilov Cc: Peter Eisentraut , Postgres hackers , Andres Freund Subject: Re: pgsql: walreceiver uses a temporary replication slot by default Message-ID: <20200319022617.GP214947@paquier.xyz> References: <20200122055510.GH174860@paquier.xyz> <753391579708726@iva3-77ae5995f07f.qloud-c.yandex.net> <20200216060314.GC97911@paquier.xyz> <15987771581947824@iva1-398527a32f9a.qloud-c.yandex.net> <20200218024338.GB4176@paquier.xyz> <3389391584476523@vla1-3991b5027d7d.qloud-c.yandex.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cnBsrynPgIOyCJkL" Content-Disposition: inline In-Reply-To: <3389391584476523@vla1-3991b5027d7d.qloud-c.yandex.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --cnBsrynPgIOyCJkL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 17, 2020 at 11:39:11PM +0300, Sergei Kornilov wrote: > We need this change to set is_temp_slot properly. PrimarySlotName > GUC can usually be an empty string, so just "slotname != NULL" is > not enough. Yep, or a temporary slot would never be created even if there is no slot defined, and the priority goes to primary_slot_name if set. > I attached patch with this change. Thanks, I have added a new open item for v13 to track this effort: https://wiki.postgresql.org/wiki/PostgreSQL_13_Open_Items -- Michael --cnBsrynPgIOyCJkL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl5y2EkACgkQnvQgOdby QH2UuQ//bkAadapE/TUkbikMO2a3Rux2To59tTA+ynFU1iPFlqXHcGxHnCWv1Qsi tW9rrm5l0SwXw4rmaOiS8myPyuXu0wmzydvL7Qffa9X/8w2zxRTeCBFvLrJbVpZd uzTBR5KcdE06Y+eC+qAHx9ds80WOsQutMwhQz6PKHOfPX3mk7X4kiabFtDgfjDu1 rmX1Uho+762BImT1J6SjLRnpTLbfZdFKAnLca8pztfuHvPLTdWQhiwyRrUdVvJjN DzmLeK1oW0D6xU9+XcNTaXOYTa3ofR5/B4toVwirgCjYYnZ1Kg+dER/c7m4tgf8y 4TrAXWGuosS8CrEgR7UVuBuKCROwrZONZaXXHF7sc2C0YKJ6CYHIf5vwF0y6RC2Q yfq3TV5TY2D8kJl7oRqGlI2YTwp+IvwgUlf3ruM63t1rXBPrZcv+ED2DNGRN8F+N V5VJIUigjTBfkVILu1tw2Jwmc0Ly/iDyAZc80tB+/GbFh2tUlG+W3Kui5mJiBiQ8 ZrJon/7OMpz3Of/5dqs33JsRfydbpWzaKaz23t90npSGIcDIX3/MgBP2GfCT4ma3 OYmCStMDYDihvcbvDNH6Gz27oCuooxnON2jecYst4+8V0DSY4sYSxjbHqJ29ckuN FTlmouPNxJu0rC2Rf8nnv99z+IsdopAsgI+nu+fA3kgN4SGD6xk= =CeZQ -----END PGP SIGNATURE----- --cnBsrynPgIOyCJkL--