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 1nHXmN-00015r-7c for pgsql-admin@arkaria.postgresql.org; Tue, 08 Feb 2022 21:12:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nHXmM-0007Pm-0g for pgsql-admin@arkaria.postgresql.org; Tue, 08 Feb 2022 21:12:02 +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 1nHXmL-0007Pd-L8 for pgsql-admin@lists.postgresql.org; Tue, 08 Feb 2022 21:12:01 +0000 Received: from dormouse.elm.relay.mailchannels.net ([23.83.212.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHXmI-0004xh-Ag for pgsql-admin@lists.postgresql.org; Tue, 08 Feb 2022 21:12:01 +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 AFF23621B20; Tue, 8 Feb 2022 21:11:54 +0000 (UTC) Received: from mi3-sr2.supercp.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id D5AB5621719; Tue, 8 Feb 2022 21:11:53 +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.121.92.88 (trex/6.4.3); Tue, 08 Feb 2022 21:11:54 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|desoi@pgedit.com X-MailChannels-Auth-Id: a2hosting X-Society-Thoughtful: 5f722cd50190665a_1644354714466_2916936380 X-MC-Loop-Signature: 1644354714466:2443405194 X-MC-Ingress-Time: 1644354714465 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=x5MO5gR+ex9VhwgnAB8djhzIAgS6G1uHI+MG5U5Tets=; b=XmE+eWFGhu7tseT3n7E3VO3OWJ qDx6x08tUNOj0J8INmO6RlrTeZyi+amA7ZCswWnKxAuWpFPZvzoj1WFKvzl8DwABrREU2wOROvvCN PuvJI/19ADI5Ti3CpVJYZbIyfziXX/yE31c+HfrMXLlg4W/mPg5acDDuu4a5d1qVI3b0=; Received: from [136.49.244.4] (port=62014 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 1nHXmC-000q8N-J6; Tue, 08 Feb 2022 16:11:52 -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: Lost replication slots after pg_upgrade. From: John DeSoi In-Reply-To: <20220208080843.an4ljxpjwncz5wqi@jrouhaud> Date: Tue, 8 Feb 2022 15:11:49 -0600 Cc: Nikhil Shetty , Victor Sudakov , Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <3CC0BC49-3376-4CDA-A133-C0A142BC6A88@pgedit.com> References: <20220208070404.d2dizlt6nvz2g3og@jrouhaud> <20220208080843.an4ljxpjwncz5wqi@jrouhaud> To: Julien Rouhaud 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 8, 2022, at 2:08 AM, Julien Rouhaud wrote: >=20 > Because pg_upgrade modifies your primary instance in such a way that a = standby > can't simply keep replicating from it. Would it work as expected if before pg_upgrade on the standby: alter subscription my_subscription disable; alter subscription my_subscription set (slot_name =3D NONE); And then after pg_upgrade: alter subscription my_subscription enable; I have not tried it yet, but I thought this would be the simplest = option. John DeSoi, Ph.D.