Last active
August 29, 2015 14:04
-
-
Save vivus-ignis/aa1fcde4f45bdfa39429 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
# upgrade postgresql on debian | |
set -e | |
echo 'deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main' >> /etc/apt/sources.list.d/pgpd.list | |
wget https://www.postgresql.org/media/keys/ACCC4CF8.asc | |
apt-key add ACCC4CF8.asc | |
apt-get update | |
apt-get install -y postgresql-9.3 | |
pg_dropcluster 9.3 main --stop | |
export LC_ALL=$LANG | |
export LC_CTYPE=$LANG | |
pg_upgradecluster 9.1 main # --> downtime here | |
pg_dropcluster 9.1 main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment