Upgrades/Installation in Cloud9
You can't just follow the directions on the site, you have to do some mojo first.
sudo apt-get update
sudo apt-get install apt-transport-https
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
You're good to go!
I got most of this information from this blog post and this Medium post. I'm going to upgrade to version 9.5 to get the JSONB functionality.
psql --version
Use this version number for the next commands. I have 9.3.14 installed, so I'll be using 9.3 in any commands that require it.
sudo pg_ctlcluster 9.3 main stop
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/postgres.list
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.5
Note: When the prompt appears asking what to do about the createcluster.conf
file, select keep the local version currently installed.
sudo pg_dropcluster --stop 9.5 main
sudo pg_upgradecluster 9.3 main
Note: This may take a while.
sudo pg_lsclusters
sudo pg_dropcluster 9.3 main
You're good to go!