pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John DeSoi <desoi@pgedit.com>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Nikhil Shetty <nikhil.dba04@gmail.com>
Cc: Victor Sudakov <vas@sibptus.ru>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Lost replication slots after pg_upgrade.
Date: Tue, 8 Feb 2022 15:11:49 -0600
Message-ID: <3CC0BC49-3376-4CDA-A133-C0A142BC6A88@pgedit.com> (raw)
In-Reply-To: <20220208080843.an4ljxpjwncz5wqi@jrouhaud>
References: <CAFpL5Vws1tJnO8_CeOBO6e2q5K4Zbe4==redhV1yLSekm1U4TQ@mail.gmail.com>
	<Yftm6IwtRKg5QB7P@admin.sibptus.ru>
	<CAFpL5Vx__E4hfvvoCQOmGEtAygowJzto_=sQHUTNbXOpUo1PUQ@mail.gmail.com>
	<YgHkxM8Ocn4F3zWi@admin.sibptus.ru>
	<CAFpL5VxJiFdZ=UKAGNEqNo=U3eSDSFx1uabrrst-GJu2z3zqUg@mail.gmail.com>
	<20220208070404.d2dizlt6nvz2g3og@jrouhaud>
	<CAFpL5Vw5O3mzhjS6NuNZSCUH8Jr+=KXVPPZ-+y5--20W6cSFmA@mail.gmail.com>
	<20220208080843.an4ljxpjwncz5wqi@jrouhaud>


> On Feb 8, 2022, at 2:08 AM, Julien Rouhaud <rjuju123@gmail.com> wrote:
> 
> 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 = 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.







view thread (16+ messages)  latest in thread

Message-ID: <3CC0BC49-3376-4CDA-A133-C0A142BC6A88@pgedit.com>
Permalink:  ../3CC0BC49-3376-4CDA-A133-C0A142BC6A88@pgedit.com/
Also on:    postgresql.org/message-id/3CC0BC49-3376-4CDA-A133-C0A142BC6A88@pgedit.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: desoi@pgedit.com, rjuju123@gmail.com, nikhil.dba04@gmail.com, vas@sibptus.ru, pgsql-admin@lists.postgresql.org
  Subject: Re: Lost replication slots after pg_upgrade.
  In-Reply-To: <3CC0BC49-3376-4CDA-A133-C0A142BC6A88@pgedit.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox