Skip to content

Instantly share code, notes, and snippets.

Avatar

Gloria Passarello GloryPassarello

View GitHub Profile
@tamoyal
tamoyal / gist:2ea1fcdf99c819b4e07d
Last active Feb 13, 2020
Upgrade Postgres 9.3 to 9.4 on Ubuntu
View gist:2ea1fcdf99c819b4e07d
# Be sure to save your config files. Optional but I do:
sudo cp /etc/postgresql/9.3/main/postgresql.conf ~
sudo cp /etc/postgresql/9.3/main/pg_hba.conf ~
# Package repo (for apt-get)
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'
# Also probably optional but I like to update sources and upgrade
sudo apt-get update