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 1nHnT9-0006yb-3k for pgsql-admin@arkaria.postgresql.org; Wed, 09 Feb 2022 13:57:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nHnT7-0003Cr-V9 for pgsql-admin@arkaria.postgresql.org; Wed, 09 Feb 2022 13:57:13 +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 1nHnT7-0003Ci-Jy for pgsql-admin@lists.postgresql.org; Wed, 09 Feb 2022 13:57:13 +0000 Received: from buffalo.birch.relay.mailchannels.net ([23.83.209.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHnT4-0006Ts-Ut for pgsql-admin@lists.postgresql.org; Wed, 09 Feb 2022 13:57:13 +0000 X-Sender-Id: a2hosting|x-authuser|desoi@pgedit.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5B4184C1278; Wed, 9 Feb 2022 13:57:06 +0000 (UTC) Received: from mi3-sr2.supercp.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id 32FEA4C1352; Wed, 9 Feb 2022 13:57:05 +0000 (UTC) X-Sender-Id: a2hosting|x-authuser|desoi@pgedit.com Received: from mi3-sr2.supercp.com (mi3-sr2.supercp.com [68.66.200.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.114.70.244 (trex/6.4.3); Wed, 09 Feb 2022 13:57:06 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|desoi@pgedit.com X-MailChannels-Auth-Id: a2hosting X-Keen-Cooing: 45e92fbc66e54e4e_1644415026196_1297139507 X-MC-Loop-Signature: 1644415026196:840984463 X-MC-Ingress-Time: 1644415026196 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pgedit.com; s=default; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=SQG5mCCeiDDMup6iZd5rynZpeqECNkNEJUbiPmspBug=; b=VSIB2k+dTcYPGqWhqgBeWoToxC 0ugyoIbSOgqXUvQwa1UdAwzu0hfeAGRRR5gKT0oUMpPVjqYvEcAVul4YCLuq9013VNTywaac1wIE3 cQZkXriOE0ooQYEY8nI7ATbgJ1xVvKM/i6TNt7/tMOVre89h/KEaXhyCOdBELRMIDr/Y=; Received: from [136.49.244.4] (port=65487 helo=smtpclient.apple) by mi3-sr2.supercp.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nHnSy-00DmD4-9V; Wed, 09 Feb 2022 08:57:04 -0500 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: restarting logical replication after upgrading standby From: John DeSoi In-Reply-To: Date: Wed, 9 Feb 2022 07:57:03 -0600 Cc: pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <60559CE6-D89F-4897-883D-1D716A4F654A@pgedit.com> References: <757323a0-6eeb-3ec1-d578-d98214247c41@Chaos1.DE> <1cc52b6e-484e-8502-65dd-d3ba66982fb5@Chaos1.DE> To: Axel Rau X-Mailer: Apple Mail (2.3654.120.0.1.13) X-AuthUser: desoi@pgedit.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Feb 7, 2022, at 11:00 AM, Axel Rau wrote: >=20 > Anybody out there, succeeding with upgrading a logical replication = subscriber without resyncing it? I have not tried it, but thought this the idea below would work for = upgrading the publisher or subscriber with pg_upgrade. Plan to test it = in a few weeks. If anyone knows it will not work, that will save me some = time :). Before pg_upgrade on the subscriber: alter subscription my_subscription disable; alter subscription my_subscription set (slot_name =3D NONE); And then after pg_upgrade: alter subscription my_subscription enable; John DeSoi, Ph.D.