How To Upgrade Postgres To New Version

In this article, I’ll demonstrate the process of upgrading PostgreSQL from version 9.4 to 15.6 on a CentOS 7 operating system. PostgreSQL upgrades are essential for accessing new features and enhancing database performance. Follow along for a concise guide to ensure a smooth transition to the latest version.

Existing cluster version

1. Download and install the postgres 15

https://yum.postgresql.org/rpmchart

To resolve dependency error for libzstd install following packages

Now Install This packages in following sequence

2. Initialise the postgres 15 version

3. Start and check postgres 15 version

4. Run the postgres upgrade with check option

5. Run the actual postgres upgrade

6. Start the new postgres cluster and check.

Without Extra Space approach

  1. Run the postgres upgrade with check option

2. Run the actual postgres upgrade

Conclusion:-

Well done! We’ve upgraded PostgreSQL database from version 9.4 to 15.6 on CentOS 7. Remember, taking backups and snapshots beforehand is essential. With your database now updated, you’re ready to enjoy the latest features and improvements while ensuring data integrity and system security.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *