reactive-tech / kubegres

Kubegres is a Kubernetes operator allowing to deploy one or many clusters of PostgreSql instances and manage databases replication, failover and backup.
https://www.kubegres.io
Apache License 2.0
1.32k stars 74 forks source link

Upgrade between major versions #167

Closed samstride closed 1 year ago

samstride commented 1 year ago

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.

alex-arica commented 1 year ago

Hi,

Thank you for your message.

Internally we upgrade PostgreSql major versions as follows:

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.