Re: deb’s pg_upgradecluster(1) vs streaming replication

From: Michael Banck <mbanck(at)gmx(dot)net>
To: James Cloos <cloos(at)jhcloos(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: deb’s pg_upgradecluster(1) vs streaming replication
Date: 2023-06-19 09:01:12
Message-ID: 64901959.050a0220.f396a.9554@mx.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Sat, Jun 17, 2023 at 07:10:23PM -0400, James Cloos wrote:
> Has anyone recently tried updating a streaming replication cluster using
> debian’s pg_upgradecluster(1) on each node?

Note that the word "cluster" in upgradecluster refers to a single
Postgres instance, a.k.a a cluster of databases. It is not designed to
upgrade streaming replication clusters.

> Did things work well?
>
> My last attempt (11 to 13, as I recall) had issues and I had to drop and
> re-install the db on the secondaries.
>
> I'd like to avoid that this time...
>
> Should I expect things to work easily?

No, you need to either rebuild the secondaries or use the rsync method
to resync them from the documentation. The latter is complicated and
iffy though, and not generally recommended I believe.

Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tommy Pavlicek 2023-06-19 09:18:14 Re: [PATCH] ltree hash functions
Previous Message Amit Langote 2023-06-19 08:35:34 Re: SQL/JSON revisited