Oct 9, 2012
Nathan Thom

PostgreSQL 9.2 Upgrade


I just upgraded PostgreSQL 9.1.5 to 9.2.1 on my Ubuntu 11.10 server. One thing that caused me grief for a while was that the pg_upgrade and pg_config files didn’t exist for the 9.2 installation. It took me a while to figure out that they are packaged separately in the postgresql-server-dev-9.2 package. Installing that did the trick, but it’s a little put-offish having to install a dev package on my prod server.

So steps I needed to get the software installed:

sudo add-apt-repository ppa:pitti/postgresql
sudo apt-get update
sudo apt-get install libpq-dev
sudo apt-get install postgresql-server-dev-9.2
sudo apt-get install postgresql-9.2

Followed by a very simple and straightforward pg_upgrade.

Related posts:

  1. Installation Frustrations
  2. Custom PostgreSQL RPM to Install Multiple Versions
  3. Upgrading PostGIS

Leave a comment

Article Series

Kick Ass PostgreSQL Books

Kick Ass Oracle Books

I've read lots of Oracle books, but these are by far the best I've encountered:

Categories