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 1qlLTm-002LkZ-HG for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Sep 2023 03:44:50 +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 1qlLTl-00HPHS-6X for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Sep 2023 03:44:49 +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 1qlLTk-00HPHH-Ru for pgsql-hackers@lists.postgresql.org; Wed, 27 Sep 2023 03:44:48 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlLTi-007oVh-0k for pgsql-hackers@lists.postgresql.org; Wed, 27 Sep 2023 03:44:48 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 323B45C1F56; Tue, 26 Sep 2023 23:44:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 26 Sep 2023 23:44:44 -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=1695786284; x=1695872684; bh=my jSDpcz3NFG/TcNRnZeHIjuyndjPoVjtm29jZ3aUac=; b=MglnpNkzwvkdp1PTWk Zgm3b2k1Y2hYvSpzYPSbRhLv9LI9WcVefbxW43XC08eEX6k98DrAgWKjCuCpIgXh LTyTHK9ljG3Z4JlEykOlhmS6GsAo6DVxRqM2z/R1rCh/94cuDzVoVWseLYjR0W1N 2b0AaqY112hvqkODCYYi5hIQMvYcqDtQk5an5mgClTUEKfj3/ozJe2qggZUcAbf9 ZIYQqTJ6m6cysQ8VaVfgoi6nRyJ8NJUBVMH9LjdACeh5XT6Q/G+WH9giSbA6RAI4 X6hDWIuUtLHJil4foaCmM9YXFrx+yJJKMdN0CeihVXEcfjDjE97F5vRHdgIA0iX6 mUkA== 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=1695786284; x=1695872684; bh=myjSDpcz3NFG/ TcNRnZeHIjuyndjPoVjtm29jZ3aUac=; b=Tb9a8GKkftUrF3GPZvx0nWfZhytrl 46AeH+yn6e2hO4qmPWwQ8OAzwW5TJHuSape323OnYWx6meMcwY866UJu3wqOZZk/ PCTVlS3mGztceIYIqzyd97+KB5I2qhn4yr6YdMcbkBuoc0QSb4df555gceHH2IpY h+KTndMOj8Jg6lL8n4yBkAUOfyGLGHwIrwBhdKTIAXjgRDxXNs/MHWFLJWu9sMNT eZ/OSg795ioLwZK7WdM9mk35VEdNbrasWU7noEAJA5t4yjpRjvW+/WQpq1Gv5NlV NNgq/jIxbFj6OKIEMbMiuy8d0aDAPNlTeETFESMfyoW7mMCIPUc4O64vg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvjedrtddugdejgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt jeenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeevteejgfejveegudekheeiueei ueeiveeuiedugeehveeugffgudeuleegleeiteenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Sep 2023 23:44:41 -0400 (EDT) Date: Wed, 27 Sep 2023 12:44:38 +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: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Nv1M2X4RyyVqv5B/" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Nv1M2X4RyyVqv5B/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 26, 2023 at 09:40:48AM +0530, Amit Kapila wrote: > On Mon, Sep 25, 2023 at 11:43=E2=80=AFAM Michael Paquier wrote: >> Sure, that's assuming that the publisher side is upgraded. >=20 > At some point, user needs to upgrade publisher and subscriber could > itself have some publications defined which means the downstream > subscribers will have the same problem. Not always. I take it as a valid case that one may want to create a logical setup only for the sake of an upgrade, and trashes the publisher after a failover to an upgraded subscriber node after the latter has done a sync up of the data that's been added to the relations tracked by the publications while the subscriber was pg_upgrade'd. >>> This is the primary reason why I prioritized to work on the publisher >>> side before getting this patch done, otherwise, the solution for this >>> patch was relatively clear. I am not sure but I guess this could be >>> the reason why originally we left it in the current state, otherwise, >>> restoring subscription rel's or origin doesn't seem to be too much of >>> an additional effort than what we are doing now. >> >> By "additional effort", you are referring to what the patch is doing, >> with the binary dump of pg_subscription_rel, right? >> >=20 > Yes. Okay. I'd like to move on with this stuff, then. At least it helps in maintaining data integrity when doing an upgrade with a logical setup. The patch still needs more polishing, though.. -- Michael --Nv1M2X4RyyVqv5B/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmUTpSYACgkQnvQgOdby QH1HNw/9HJ9joKgyVXPcngiuxhmR1+3mp+l0yLK90KAm0KoEMNRmTJFYKshNMWNT jIkyTScO0e42BpnnqEaw7/DMtaquf4K2E181D27JIzNu9MxVquBwZl6sPajUOqCy TctpwIY/XkV2z1bgVzxp5FZ/CeglL26ndMFjyJ/Gvq2yZTSr1rgXxV9Mkm3HF1lx rq+SFg21MIbO4/W/8tn4GVPY3o0b9vcvPrxi8BuOk1cqvYGXaghMdWXmrctWNnQg nPWGn2anXp1QLD07pd9DLumsib2LnO2I2spndmKMjVI5S/2INQ+4I6AYraUu9I+M DBpGuTvutpYS5GE4sYr4gs9cQ2AP8o9n7pcKZU6Xy8iaVoQFjUZhlTGRojk6udHq WZ660cKMJFj6HlCq0ISxowbaxYOdwTyvLU3x7qn6nHTbxcOCVruc2O16aVlsnmOd ZmYQT6AlYTBudplvTt0qx35dhYkdYlHGrhO11b14W+p1aCcFXFfc/KQZNCRwX7Tq QJ2JxwGiVUPIbcGRi06mA/GtCOyyatXTm7M5dx+6f2Eubucvo2/4gQmOfWbCaoXT vUkFWXsIJjjLGO+KKQXcDxwnMsCg4nrWulXAJJ6W/sieS27gPgmwQgIBLZW3yLIf mhPeHVcSXRnNnSfGmIrpFJNYxDPZQCGunGLW7fKOsC4xcrtyFdo= =ip09 -----END PGP SIGNATURE----- --Nv1M2X4RyyVqv5B/--