Last active
November 22, 2018 15:02
-
-
Save nileshk/c8962a32fbc50d5aa051c7293bae12e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pg_dropcluster 10 main --stop | |
sudo pg_upgradecluster 9.6 main | |
sudo pg_dropcluster 9.6 main | |
sudo apt purge postgresql-9.6 postgresql-client-9.6 postgresql-contrib-9.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If upgrading from Postgres 9.5 (e.g. Ubuntu 16.04 -> 18.04):
sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 main
sudo apt purge postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5