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 1qm1SM-005JVf-VJ for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Sep 2023 00:34: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 1qm1SL-0006jx-No for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Sep 2023 00:34:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qm1SL-0006jg-Dc for pgsql-hackers@lists.postgresql.org; Fri, 29 Sep 2023 00:34:09 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qm1SI-008BRT-JE for pgsql-hackers@lists.postgresql.org; Fri, 29 Sep 2023 00:34:08 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C79775C013A; Thu, 28 Sep 2023 20:34:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 28 Sep 2023 20:34: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:sender :subject:subject:to:to; s=fm2; t=1695947644; x=1696034044; bh=9O vHUPKVEKqtba4THsI+BZ6CTs0VbYsLceIiMnOHWbs=; b=S68VbKz8w2XYghrkHd p2O+Rm0SD3rkcs+J1DEcIPvKHCVCJXzXkGVRelidgiz5OLSpXL9wh2DKRXgfNXeF Nsblxx5jxrwoW9qv5uBZKAqo9QihpebLRJBRb/HQ3SQhlDkfTzV4PeR8oTkJGyP+ FKbZRSoegFXMbra6wLZiTP0GlHFSPDJWryHWrmwRnXhKc3vdvWLMw5p+1tjMkTez afEbZbpCBXEeULHgqF5CqMwWQA47sj9Cijl5KeEhd9EjjPvBe0aDvWxfo8ePm9dT AHctNbL/+FbrikJH3xGdv+Ug4Rh61DS/PHG7gmPkc1ADADzfSAp+bkW39Vtz8jdD c2eA== 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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1695947644; x=1696034044; bh=9OvHUPKVEKqtb a4THsI+BZ6CTs0VbYsLceIiMnOHWbs=; b=nPhbMNNp/LNMhZdPTGdLxBsvKK2QJ qCnYob0a9mEiM1gYmrH6FT4ExMfAb/0aUG7CEbr/fQ9nGJamgE+l+6xlw4LBpD06 HYPq7WTMJqBaDmVfsAVJL3KWI69yezyVnwVV7jmGz99djRdX+gvrPXi7l4+TflaK kiomKwHbv8D9F4GVoNGEHyaBQlKLV6rVA2MIwgPLDH4Unhgv3+8ph8C7QaedMM8L 8hD4Nkh3AVM2DzD3BdXy2j3EC2QF3UKQAstV59fC5YGDXRMP2L2iuVbDhpMvnMwg g3hB/N1/oLMZbTsvotcfsDOh9BF/lqnvwQgLFFEwOfIL/OK/xAjduI6QQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrtddugdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt jeenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeevteejgfejveegudekheeiueei ueeiveeuiedugeehveeugffgudeuleegleeiteenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Sep 2023 20:34:02 -0400 (EDT) Date: Fri, 29 Sep 2023 09:33:59 +0900 From: Michael Paquier To: Amit Kapila Cc: vignesh C , "Hayato Kuroda (Fujitsu)" , Julien Rouhaud , PostgreSQL Hackers Subject: Re: pg_upgrade and logical replication Message-ID: References: <20230424072224.qd3awkfrjcanw2pa@jrouhaud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zSysXCOMQiPDK3LG" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --zSysXCOMQiPDK3LG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 27, 2023 at 07:31:41PM +0530, Amit Kapila wrote: > On Wed, Sep 27, 2023 at 3:37=E2=80=AFPM vignesh C w= rote: >> Once the table is in SUBREL_STATE_SYNCDONE state, the apply worker >> will check if the apply worker has some LSN records that need to be >> applied to reach the LSN of the table. Once the required WAL is >> applied, the table state will be changed from SUBREL_STATE_SYNCDONE to >> SUBREL_STATE_READY state. Since there is a chance that in this case >> the apply worker has to apply some transactions to get all the tables >> in READY state, I felt the minimum requirement should be that at least >> all the tables should be in READY state for the upgradation of the >> Subscriber. >=20 > I don't think this theory is completely correct because the pending > WAL can be applied even after an upgrade. Yeah, agreed that putting a pre-check about the state of the relations stored in pg_subscription_rel when handling the upgrade of a subscriber is not necessary. -- Michael --zSysXCOMQiPDK3LG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmUWG3cACgkQnvQgOdby QH0EHBAAn2RJp+jSS5ewb51tXqdmhc8f0Ccu4oy7xSrIlnLOYPWy3ByFaOwjSd73 lC2ClfSXzJwtn+Y6JFYpaY2T3OlUXHyl18teFxTEh4cSOCMF3DNy1e2P+CraofmZ FHn1hbKdkFe+ihheCD3idrr1tM5mo/qY221nfOjwujyex5pYKMVv/f9wMvUFglVr t0kTPQXUjH30fHAIMyaDwm8j2lKEKNm8Ix4kRdPdB6kR6eOXv76ZN0JybqK6JyQ7 0VLOWJcd+oPUn18G3ABcX3ARNaeJnOWHyuSgBP5J+uNuCytTy3vkl14vBPhVylaA uiCw/Rb9Wq3Vbui7n0t5rnt3zrSimRIY6DVY0PR1t7PJV0byo3pFwx8TkUGiBTIn XYlAa3c0iOXV1dFeKf4mfV98vj+Mc43WXyoY8137RxDaAEoWMgWQVkD5H7Uo2cBU DfnOuFVeesp5hc89ZPd904z9/GQpBw66dMUHDPUW7+D1HgW8s81GqxsaHP4kijKv n3MiCy7vfOVHSdGzGYruhF+14/VWGY759jLRf7pcE0454yRk3ngv1W1GaShNNxIq 37yJh9gn5qyrw/CnTwkqMs39cpPtu98p8fiyO8gFYl95/BTcJjhd5yG+5eVOCEKD dX26arqILDPRpFucDEbgrXf6xPzjj5l+ksIyIul4AWAYdgYGs0U= =7yj6 -----END PGP SIGNATURE----- --zSysXCOMQiPDK3LG--