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 1nHHH1-0006sj-R4 for pgsql-admin@arkaria.postgresql.org; Tue, 08 Feb 2022 03:34:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nHHGz-0005vf-Lw for pgsql-admin@arkaria.postgresql.org; Tue, 08 Feb 2022 03:34:33 +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 1nHHGz-0005vV-AS; Tue, 08 Feb 2022 03:34:33 +0000 Received: from admin.sibptus.ru ([2001:19f0:5001:21dc::10]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHHGw-0003xA-K8; Tue, 08 Feb 2022 03:34:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=vP04ROg6ioOM+a3J/ctOB3wz4HlvYvEaRx3jM7bGgeQ=; b=jGeDnL1IniFRM8Ivrq6bgKhIyV LKq2sVXAxSi2hx8JbDOLPgQb/FwFQRW1/xosHP7K1ulMB1gq6P3A8ZEHUbfeo11Vkdzh8sVmDOk3q nh0D6mqX5c+df8YltUkM3d7BBmp1dp5uo0xXec5CAbpOQvxnJ6qE+sP5sx6ue4qZA+6Q=; Received: from vas by admin.sibptus.ru with local (Exim 4.95 (FreeBSD)) (envelope-from ) id 1nHHGv-000F03-0B; Tue, 08 Feb 2022 03:34:29 +0000 Date: Tue, 8 Feb 2022 03:34:28 +0000 From: Victor Sudakov To: Nikhil Shetty Cc: Pgsql-admin , pgsql-admin Subject: Re: Lost replication slots after pg_upgrade. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nikhil Shetty wrote: > > Thank you for the update. Is there a way we can retain the physical slot > during and after upgrade? What exactly are you trying to achieve? A minor upgrade does not destroy your slots, actually it does not modify $PGDATA. A major upgrade requires creating your replicas from scratch with pg_basebackup (unless you are adventurous enough to go the rsync way). pg_basebackup can create the slots for you automagically (-C -S) if they are gone. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet