Cannot shutdown old postmaster when upgrading to Postgres 9.2 I'm upgrading to Postgres 9.2.2 (from 9.1.4). When I try to upgrade the DBs using:

pg_upgrade -b /usr/local/Cellar/postgresql/9.1.4/bin -B /usr/local/Cellar/postgresql/9.2.2/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres


I get the following error message:

Performing Consistency Checks
-----------------------------
Checking current, bin, and data directories                 ok

There seems to be a postmaster servicing the old cluster.
Please shutdown that postmaster and try again.
Failure, exiting


I've trying stopping the server, but cannot get the upgrade command to work. How to I shutdown the old postmaster?
The postmaster.pid should be inside the previous version's usr/local/var folder. Simply renaming this file should solve the problem.