From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Murthy Nunna <mnunna@fnal.gov>
To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Linux in-place upgrade
Date: Mon, 26 Jun 2023 19:35:45 +0200
Message-ID: <d64e4eb55d54623550db9ccbe54699605029752e.camel@cybertec.at> (raw)
In-Reply-To: <DM8PR09MB667703E79768433DAB4EBB3BB826A@DM8PR09MB6677.namprd09.prod.outlook.com>
References: <DM8PR09MB667703E79768433DAB4EBB3BB826A@DM8PR09MB6677.namprd09.prod.outlook.com>
On Mon, 2023-06-26 at 17:13 +0000, Murthy Nunna wrote:
> We are planning an in-place upgrade of Linux level from RHEL 7 to RHEL 8 or RHEL 9.
> We have several PG clusters running on this server using different versions of postgres (pg12, pg13 and pg14).
>
> We have couple of plans:
>
> 1. Shutdown clusters, unmount disks that contain postgres data and wals, upgrade Linux,
> remount postgres disks and restart postgres clusters
> 2. Same as above but reinstall postgres (pg12, pg13 and pg14) before restarting postgres clusters
>
> Questions:
> 1. Will 1 or 2 or both above work?
> 2. Is there any official documentation above OS upgrades?
The documentation is here:
https://www.postgresql.org/docs/current/upgrading.html
It depends on how you installed PostgreSQL. If you used binary packages, Option 1 should work fine.
Don't forget to reindex all indexes on strings!
Yours,
Laurenz Albe
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: pgsql-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, mnunna@fnal.gov, pgsql-admin@lists.postgresql.org
Subject: Re: Linux in-place upgrade
In-Reply-To: <d64e4eb55d54623550db9ccbe54699605029752e.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox