Upgrading Postgres

November 2012


While migrating from Debian Squeeze to Debian Wheezy...

  1. Install version 9.1 of the PostgreSQL server

  2. Stop the 9.1 database cluster

    (It's not serving anything yet.)

  3. Drop the newly created 9.1 database cluster

  4. Upgrade the 8.4 cluster to 9.1

    NB the order of the versions in the command:

  5. Drop the (old) 8.4 cluster

  6. Remove the 8.4 server package