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 1pfHrA-00059w-U3 for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Mar 2023 10:07:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pfHr9-0004xS-BE for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Mar 2023 10:07:39 +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 1pfHr9-0004xJ-1t for pgsql-hackers@lists.postgresql.org; Thu, 23 Mar 2023 10:07:39 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfHr1-0001Om-WF for pgsql-hackers@lists.postgresql.org; Thu, 23 Mar 2023 10:07:38 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 393C03200918; Thu, 23 Mar 2023 06:07:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 23 Mar 2023 06:07:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1679566048; x= 1679652448; bh=cFnWhyXTay9WCgxdc3lyZdjoUKeuGU08OasxFxuvHNc=; b=X fzl8cp/VWfbhsUTmFpY9qjGBEt/MuY2ZFytb3krGETdRyC8ZvTD7uaJADglK6eZZ mFaIthBqToLjFleEQKbiM6MuHojm2kxm1eJAzTbKAPknsiIVxy55raTSt771q11c GNGXcLXmYnr6UezbWJKUxGpZStiKOTruma8L+CQzWjB+73sXvs6e99h/hIC6yovN +45ftOHleS/fKP86KZX+t1ViMbTPo64mRVKxkzE8WLVijpRLri/cva3EXLl10vc+ 3otp8fcVM6TcDSrdMhpNUo8LkgeRw1mIniSBCkD/Zlfy6lJ+oP5HIQXtTyRc7Gyw GbzIr2bdvXZfJqkxqkkrA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeggedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Mar 2023 06:07:28 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C20F6386; Thu, 23 Mar 2023 11:07:26 +0100 (CET) Date: Thu, 23 Mar 2023 11:07:26 +0100 From: Alvaro Herrera To: Amit Kapila Cc: Bharath Rupireddy , Kyotaro Horiguchi , PostgreSQL Hackers Subject: Re: add log messages when replication slots become active and inactive (was Re: Is it worth adding ReplicationSlot active_pid to ReplicationSlotPersistentData?) Message-ID: <20230323100726.vzrgvpjt3il7uemq@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Mar-22, Amit Kapila wrote: > I see that you have modified the patch to address the comments from > Alvaro. Personally, I feel it would be better to add such a message at > a centralized location instead of spreading these in different callers > of slot acquire/release functionality to avoid getting these missed in > the new callers in the future. However, if Alvaro and others think > that the current style is better then we should go ahead and do it > that way. I hope that we should be able to decide on this and get it > into PG16. Anyone else would like to weigh in here? I like Peter Smith's suggestion downthread. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/