Re: Upgrade 9.5 cluster on Ubuntu 16.04 - Mailing list pgsql-general

From David G. Johnston
Subject Re: Upgrade 9.5 cluster on Ubuntu 16.04
Date
Msg-id CAKFQuwYRn4cHidhUK_1PyY-YgtnoHOVo5=LVKcLXRdYHzZRsBg@mail.gmail.com
Whole thread Raw
In response to Re: Upgrade 9.5 cluster on Ubuntu 16.04  (Vano Beridze <vanuatoo@gmail.com>)
List pgsql-general
On Thursday, September 2, 2021, Vano Beridze <vanuatoo@gmail.com> wrote:
I just want to upgrade to the OS and Postgres that is supported.
If I just stop the service on both VMs and upgrade Ubuntu, then start Postgres, will it work or I should go with clean install and dump/restore?


Personally I find the concept of upgrading an O/S to be distasteful, especially when using VMs.  Build out the new environment, migrate the data, then destroy the old one.  In any case I would hope upgrading to 18.04 wouldn’t automatically upgrade PostgreSQL.

For me, the two main questions are whether to use pg_dump or pg_upgrade, and whether to upgrade PostgreSQL before or after upgrading the OS.  Upgrading both simultaneously isn’t a valid choice, even if you could figure out a way to actually make that possible.  Either way a pg_basebackup and restoring that is probably the simplest way to get the database itself moved from one server to the other.

David J.

pgsql-general by date:

Previous
From: Vano Beridze
Date:
Subject: Re: Upgrade 9.5 cluster on Ubuntu 16.04
Next
From: Ninad Shah
Date:
Subject: Re: memory consumption of memory for postgres db container