Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to upgrade postgres with the playbook? #219

Open
thbar opened this issue Dec 19, 2016 · 2 comments
Open

How to upgrade postgres with the playbook? #219

thbar opened this issue Dec 19, 2016 · 2 comments

Comments

@thbar
Copy link
Contributor

thbar commented Dec 19, 2016

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 :

  • postgresql_service_enabled could I guess be used to switch off the database while at 9.5.
  • issue #101 seems to hint that 2 versions will be installed at once on the same port by default
  • for simple deployments, an automated call to pg_upgrade could do the trick

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
Copy link

lhoss commented Mar 14, 2017

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
#213 (hopefully getting merged at some point)

Copy link

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!

@github-actions github-actions bot added the stale label Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants