Re: Advice Needed: Simultaneous Upgrade of Two-Node PostgreSQL 11 Cluster

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: kasem adel <kasemadel8(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Advice Needed: Simultaneous Upgrade of Two-Node PostgreSQL 11 Cluster
Date: 2025-01-06 17:13:35
Message-ID: e122a2f0a0411056585f4b6beb053756a715705b.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sun, 2025-01-05 at 19:57 +0200, kasem adel wrote:
> Proposed Upgrade Approach:
>
> Simultaneous Upgrade Process:
>
> Install new PostgreSQL version packages on both nodes
> Run pg_upgrade with --check flag on both nodes
> Execute pg_upgrade with --link option on both nodes simultaneously
> Update Patroni configuration for new version on both nodes

No, that won't work.

You have to upgrade the primary, then rebuild the standby with
"patronictl reinit". There is no safe way to upgrade the standby.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron Johnson 2025-01-06 17:48:54 Re: How to debug extension update
Previous Message kaido vaikla 2025-01-06 16:49:16 How to debug extension update