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 1oAMrF-0007CY-7X for pgsql-docs@arkaria.postgresql.org; Sun, 10 Jul 2022 02:39:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAMqE-0006Ib-Q7 for pgsql-docs@arkaria.postgresql.org; Sun, 10 Jul 2022 02:38:38 +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 1oAMqE-0006IR-IY for pgsql-docs@lists.postgresql.org; Sun, 10 Jul 2022 02:38:38 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAMq8-0005jK-N3 for pgsql-docs@lists.postgresql.org; Sun, 10 Jul 2022 02:38:38 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1oAMq7-001iw1-06; Sat, 09 Jul 2022 22:38:31 -0400 Date: Sat, 9 Jul 2022 22:38:30 -0400 From: Bruce Momjian To: Nikhil Shetty Cc: Jack DeVries , pgsql-docs@lists.postgresql.org Subject: Re: Fwd: Adding more detail to pg_upgrade documentation Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="FQso+DhpNIfF2gpb" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --FQso+DhpNIfF2gpb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Sat, Jun 4, 2022 at 03:08:58PM +0530, Nikhil Shetty wrote: > Hi Jack, > > I followed the same steps multiple times but each time, slot had to be > recreated. > > The slots under directory pg_replslot are not created in the new cluster during > pg_upgrade. > > Thanks and Regards, > Nikhil > > On Sat, 4 Jun 2022 at 1:48 AM, Jack DeVries wrote: > > Hi Nikhil, > > >From the pgupgrade docs: > > > 9. Prepare for standby server upgrades > > > > If you are upgrading standby servers using methods outlined in section > > Step 11, verify that the old standby servers are caught up by running > > pg_controldata against the old primary and standby clusters. Verify > > that the “Latest checkpoint location” values match in all clusters. > > (There will be a mismatch if old standby servers were shut down before > > the old primary or if the old standby servers are still running.) > > Also, make sure wal_level is not set to minimal in the postgresql.conf > > file on the new primary cluster. > > (source: https://www.postgresql.org/docs/devel/pgupgrade.html) > > I'm a new contributor so please forgive me if I'm on the wrong track, > but if you follow this step, won't you also be ensuring that replication > slots do not need to be migrated, since you've just ensured that standby > clusters are in sync with the primary cluster? Please let me know if I'm > missing anything! I have written the attached patch to document this. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Indecision is a decision. Inaction is an action. Mark Batterson --FQso+DhpNIfF2gpb Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="slots.diff" diff --git a/doc/src/sgml/ref/pgupgrade.sgml b/doc/src/sgml/ref/pgupgrade.sgml index f3eb7fbd33..d065227656 100644 --- a/doc/src/sgml/ref/pgupgrade.sgml +++ b/doc/src/sgml/ref/pgupgrade.sgml @@ -619,7 +619,8 @@ rsync --archive --delete --hard-links --size-only --no-inc-recursive /vol1/pg_tb Configure the servers for log shipping. (You do not need to run pg_backup_start() and pg_backup_stop() or take a file system backup as the standbys are still synchronized - with the primary.) + with the primary.) Replication slots are not copied and must + be recreated. --FQso+DhpNIfF2gpb--