public inbox for [email protected]  
help / color / mirror / Atom feed
From: Koen De Groote <[email protected]>
To: Adrian Klaver <[email protected]>
Cc: PostgreSQL General <[email protected]>
Subject: Re: Questions on logical replication
Date: Tue, 11 Jun 2024 23:38:02 +0200
Message-ID: <CAGbX52FVdt4_LnPAa_C=kzx7Za9342JtHTfVs=ucvjXVMCAXVA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAGbX52FxL9eR=jmS3ACgRC=tEm=xj_xMmFoOxO+wVA+oURW=kA@mail.gmail.com>
	<[email protected]>
	<CAGbX52HTgb2jYYO5eVDu=xB5-bjAra+34=AUFg4Xk0NpCRjnyg@mail.gmail.com>
	<[email protected]>
	<CAGbX52EMG+d-BR5SzDP+rQsrdxT32=CXD5XCT2YCmkTpr3jesw@mail.gmail.com>
	<[email protected]>
	<CAGbX52GF=n7-vi5VnfnMXKkf=CfbX_nAgmy3=eezLU6XWXqjfw@mail.gmail.com>
	<[email protected]>

> Have you looked at pg_upgrade?:

I have, but I want to keep downtime to a minimum and from my understanding
the switching of a fully synced logical replica only requires updating your
sequences. Which should be possible in less than 60 seconds.

> 1 GB each?

Yes, each. Roughly around there.


On Sat, Jun 8, 2024 at 7:46 PM Adrian Klaver <[email protected]>
wrote:

> On 6/8/24 10:40, Koen De Groote wrote:
> > What I'm trying to do is upgrade a PG11 database to PG16, using logical
> > replication.
>
> Have you looked at pg_upgrade?:
>
> https://www.postgresql.org/docs/current/pgupgrade.html
>
> >
> > The PG11 has an active and a standby, there are a handful of databases.
> > On particular one has a few tables just over 100GB, then a few 100
> > tables near 1GB.
>
> 1 GB each?
>
> >
> > What I'd do is start a publication with no tables and add them 1 at a
> > time, refreshing subscription each time.
> >
> > This might take a long time, so my main questions relate to potential
> > network issues or various situations where the instance receiving the
> > logical replication, suddenly stop being able to receive.
> >
> > Resyncing, and the effects of WAL buildup, are my main concern.
> >
> > Accidentally sent a mail to only your email, sorry for that.
> >
> > Regards,
> > Koen De Groote
>
> --
> Adrian Klaver
> [email protected]
>
>


view thread (16+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Questions on logical replication
  In-Reply-To: <CAGbX52FVdt4_LnPAa_C=kzx7Za9342JtHTfVs=ucvjXVMCAXVA@mail.gmail.com>

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

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