Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

2 versions of pg_dump on my OSX Lion

I had Postgres 9.0.x installed with homebrew, but because of lack of some modules I removed it using:

brew uninstall postgres

and installed Postgres 9.1.3 from http://www.enterprisedb.com/downloads/postgres-postgresql-downloads.

Now I've got a problem - 2 different versions on pg_dump - 9.0.5 and 9.1.3 and 9.0.5 is the default version.

Is there any way to set the 9.1.3 version as the default version of pg_dump?

like image 611
Andrey Eremin Avatar asked May 17 '12 12:05

Andrey Eremin


1 Answers

So based on your additional comments, your new version of pg_dump is not in your PATH, all you need to do is to remove the old version, and symlink the new one to any directory in your PATH, for example, /usr/bin.

Like follows:

sudo ln -s /actual/new/pg_dump /usr/bin/pg_dump

Hope this helps

like image 115
Valentin V Avatar answered Sep 20 '22 15:09

Valentin V