Closed samstride closed 1 year ago
Hi,
Thank you for your message.
Internally we upgrade PostgreSql major versions as follows:
psql
we create our empty database with CREATE DATABASE command, we create a user with CREATE USER command, and run the permission SQL GRANT queries for that user. And then we test the backup by restoring it in the new cluster of PosgreSql.We found the steps above simpler than using pg_upgrade.
Alternatively, you can use pg_upgrade
In the page about pg_upgrade, they provided good examples about how to perform upgrades between major versions.
There is also a dedicated upgrade page published by the PostgreSql team: https://www.postgresql.org/docs/current/upgrading.html
I hope that helps.
Hi,
Thank you for maintaining this repo.
We are using kubegres and are on Postgres v14.9.
Is there any documentation that we can follow to upgrade from say 14.9 to 15.4?
Also, is it possible to upgrade directly from 14.9 to 16.0?
Thanks.