Re: Questions on logical replication - Mailing list pgsql-general

From Koen De Groote
Subject Re: Questions on logical replication
Date
Msg-id CAGbX52FVdt4_LnPAa_C=kzx7Za9342JtHTfVs=ucvjXVMCAXVA@mail.gmail.com
Whole thread Raw
In response to Re: Questions on logical replication  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
> 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 <adrian.klaver@aklaver.com> 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
adrian.klaver@aklaver.com

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: DROP COLLATION vs pg_collation question
Next
From: Koen De Groote
Date:
Subject: Re: Questions on logical replication