ANXS / postgresql

Fairly full featured Ansible role for Postgresql.
http://anxs.io/
MIT License
848 stars 571 forks source link

How to upgrade postgres with the playbook? #219

Open thbar opened 7 years ago

thbar commented 7 years ago

I've recently used this playbook to install postgres 9.5 for a simple deployment (mono-instance, low scale), kudos for the great work!

9.6 support is soon to be merged. I searched tips on how to handle such an upgrade using the playbook, and thought I'd write down what I found, in hope we can maybe create a readme section (at least for simple cases).

I found the following useful elements :

I suppose we could have an postgresql_run_pg_upgrade type of variable, which could enforce the shutdown of the database, then the run of pg_upgrade etc.

If anyone already conducted such an upgrade in a semi or full automated fashion, please share more bits so we can group these in a readme section. Thanks!

lhoss commented 7 years ago

nice initiative 👍 once upgrading from 9.5 to 9.6 gets a priority for my team, happy to contribute, including making it work for (docker)containerized postgres deployments, that we added in https://github.com/ANXS/postgresql/pull/213 (hopefully getting merged at some point)

github-actions[bot] commented 1 week ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!