Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rxbHa-00A0Z3-6G for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Apr 2024 23:35:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rxbHY-00BpJk-P2 for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Apr 2024 23:35:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rxbHY-00BpJb-FS for pgsql-hackers@lists.postgresql.org; Thu, 18 Apr 2024 23:35:08 +0000 Received: from wfhigh8-smtp.messagingengine.com ([64.147.123.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rxbHV-003Wly-P3 for pgsql-hackers@postgresql.org; Thu, 18 Apr 2024 23:35:07 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.west.internal (Postfix) with ESMTP id 0F0D418000B6; Thu, 18 Apr 2024 19:35:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 18 Apr 2024 19:35:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1713483303; x=1713569703; bh=bkTTV4yzuY GrZHQ32dedTZUABenJ8WHFdjJHta3qVz0=; b=jHb/sNoDfLrHDHgUg8awS1DBTr CnD1dCX7AoU0cnRM98AfiK7cXpnst4mkT26qiEEM1mEFRa1eAyMNcZCdfzNR2Yro Gt2hEkhC3YjtSTSoNKhpn24bHu12FKzgIbdbOgfqKZi8rrZhKtmV5Wezp3qWIczt hn/5IVN5c5J0Q5HZ/6LvVKciipjkRr2jNGiopwrDaMoB3lVPab7iHoXyn5M7UvZ/ Fq+k375ayKZW6fsbqamXB8Eg6FfIAFRmPuu1Yy3AVgLGhPVAFLhaF/t/C0stf2qq 5Df6T3xo0LTsy4CXgWs94B+H4lyI9NOS36/j4sKDt/0soOreD9o7Fp5zR02g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1713483303; x=1713569703; bh=bkTTV4yzuYGrZHQ32dedTZUABenJ 8WHFdjJHta3qVz0=; b=TrOB1qOm2IiayQSOkVPxDtPKWqTcCuMGEa/0rZrYzLsl i0SHyKn0EdAlRNelt5EWyBrwyxAFIVb5k6CS7GcWebcYMZea6LSDcGYkyrixSl1y 28bo7bY/lHS379uUNiWqnityvdeHizNbrjenY1/LiWhBODLscyrRbdibcbvMawOr SgcEcq84zz0Vp95xgFA6zbYbVw7Wm2jAlSLfjVBZHEYsL49awu+oahAHXaVTrlZQ o0uMiiSDlnqkxgS/exzqYHVbNNaeA5k+AC8/SqGjDUb3fQWg18hSQwSxHGBx4hHs mxAff6U1IZcSNmVUtSyfSpMzl8ZqNR/A/FYB3Aebew== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekuddgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Apr 2024 19:35:01 -0400 (EDT) Date: Fri, 19 Apr 2024 08:34:49 +0900 From: Michael Paquier To: Amit Kapila Cc: shveta malik , "Hayato Kuroda (Fujitsu)" , "Zhijie Hou (Fujitsu)" , pgsql-hackers , "Drouvot, Bertrand" Subject: Re: Disallow changing slot's failover option in transaction block Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RBkTrUyZu9OOcPMg" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --RBkTrUyZu9OOcPMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 18, 2024 at 11:22:24AM +0530, Amit Kapila wrote: > +1 for option 2 as it sounds logical to me and consistent with ALTER > SUBSCRIPTION. BTW, IIUC, you are referring to: "When altering the > slot_name, the failover and two_phase property values of the named > slot may differ from the counterpart failover and two_phase parameters > specified in the subscription. When creating the slot, ensure the slot > properties failover and two_phase match their counterpart parameters > of the subscription." in docs [1], right? FWIW, I'd also favor option 2, mostly on consistency ground as it would offer a better user-experience. On top of that, you're saying that may lead to some simplifications in the CREATE path. Without a patch, it's hard to tell, though. As far as I can see, this is not tracked as an open item and it should be. So I have added one. -- Michael --RBkTrUyZu9OOcPMg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmYhrhkACgkQnvQgOdby QH23eg/+MHxwKJN8TKvnmWBwY6X/cfs/GjhLQzyTMHuKaw1bnTRwwr54GMwJmJ4B nU11YTfDO9t68pIb6Z0TsSrh9OIP4ZBIWcN2yZFQgDFr+muuFw3L1sA5MGpCypMV sE/7NgVFOGHeJ8lZ6IacnMB5q0ZFzCnwVCYkwwDczH+0KjkxwndAPuI7pO56V86l CMde02EDS/cVFtFZ8Q+BUJpXb+YRxybnCpciPsnQKLHtsv+Mv5H6Rurdye24orl2 kIIp5os+RG692thYCJJCx1Avpai4hmNiYc9YNqrfo6a0V4ZhxOw86HO88Iu7Ad1s 8rV5etVQdxp/pCTFcFopWjeU7HLqaS9QIpT5FDqWWx/dAKPGZns8ZgIQXqLfZ4nA ccaDoABVTv3Hfd6ZKrLBBpZz8u2ikjtLyyXOeNZ1jC7A2jP7uhPBsUSHhmLJWG9R JTj4lp6n9KZbJKdJ9CIPIeLnjOZQj8LllvpoSF6VTI3YMFp2l80aI6XetwqhWP6U nJv9C628CDyiM4d2W5Nr8bK44xm/LKukZDpZy0sqN1taKDnFPWabyUwV/0a50GwK nqhU89UXCo2lkJYG73gKyWlNGdkoWcotq4KnsvphmYF6rY0fLmhjxzFotNdsAH7Y gl0k9WEIkexH8V5uv+zYSD2Y2ZWVIji7bQg5KP1wg8gWxH5u4Vs= =t/PF -----END PGP SIGNATURE----- --RBkTrUyZu9OOcPMg--