postgresqlmacportspostgresql-9.1postgresql-9.0

MacPorts: switching between postgresql90-server and postgresql91-server


Switching the postgresql client from postgresql90 to postgresql91 is simple enough, using MacPort's port select command like this:-

calvin$ sudo port select --set postgresql postgresql91
Selecting 'postgresql91' for 'postgresql' succeeded. 'postgresql91' is now active.

But how do I also select the postgresql server from postgresql90-server to postgresql91-server?

Following the pattern, I assume:-

calvin$ sudo port select --set postgresql-server postgresql91-server
Selecting 'postgresql91-server' for 'postgresql-server' failed: The specified group 'postgresql-server' does not exist.

Solution

  • After some messing around, I am running both instances of postgresql 9.1 and postgresql 9.2 on my machine concurrently.

    http://www.calvinx.com/2012/12/01/running-postgresql-9-1-and-postgresql-9-2-servers-concurrently-on-mac-osx-lion-via-macports/