Re: Advice Needed: Simultaneous Upgrade of Two-Node PostgreSQL 11 Cluster - Mailing list pgsql-admin

From kasem adel
Subject Re: Advice Needed: Simultaneous Upgrade of Two-Node PostgreSQL 11 Cluster
Date
Msg-id CAP-pBm-Y=b6YxHPag0TLertO=7OCo1kN8RVjBg5mvJNx6Y56KA@mail.gmail.com
Whole thread Raw
In response to Re: Advice Needed: Simultaneous Upgrade of Two-Node PostgreSQL 11 Cluster  (Laurenz Albe <laurenz.albe@cybertec.at>)
List pgsql-admin
Dear Laurenz Albe

Our application for reporting  is  dependent on the replica node for handling read-only operations. If we proceed with the proposed changes, it would result in a one-month application downtime, which would significantly impact our operations and is not a feasible option for us.

We would greatly appreciate your insights and support in identifying alternative solutions to minimize down time (one month)or another solution alternative for rebuild replica from scratch. Your expertise and advice would be invaluable in helping us navigate this challenge effectively.

Thank you for your time and assistance.


في الاثنين، ٦ يناير ٢٠٢٥ ٧:١٣ م Laurenz Albe <laurenz.albe@cybertec.at> كتب:
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

pgsql-admin by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: Postgresql 17 incremental backup
Next
From: Laurenz Albe
Date:
Subject: Re: Advice Needed: Simultaneous Upgrade of Two-Node PostgreSQL 11 Cluster