What is the recommended method to perform a minor version upgrade of postgres on linux (Centos)? I am looking at upgrading from 9.5.4 to 9.5.5.
PostgreSQL Minor Version Upgrade – Step-by-Step Guide
postgresqlupgrade
Related Question
- MySQL upgrade 5.0.88 to the latest version
- PostgreSQL Upgrade – How to Perform a Minor Upgrade on Windows (e.g., 9.3.0 to 9.3.1)?
- PostgreSQL – How to Upgrade from Version 8.4 to 9.4
- MariaDB Upgrade – Can Upgrade from MariaDB 5.5 to MariaDB 10.3 Directly?
- Postgresql – Postgres Minor Version Upgrade from 11.4 to 11.7
- PostgreSQL Upgrade – Issues with pg_upgrade
Best Answer
Just do a
dist-upgrade
or the like on Linux, or install the newer versions on Windows/OSX. Minor versions ensure total compatibility with the data directory (heap, and index).Stands to reason though, you'll have to stop the database during the upgrade.
From the official docs on versioning
So essentially, PostgreSQL is so conservative that minor-version number upgrades are only issued when there is more risk to not-upgrading than upgrading. I've been working with PostgreSQL for about 15 years. I don't do any additional backups nor take any special precautions when doing minor upgrades. Not saying you can't -- even the docs say they come with "some risk."