I’m trying to fix the problem asked / answered here:
Repairing Postgresql after upgrading to OSX 10.7 Lion
It suggests that I use export on PATH. However, here’s what I’m getting:
$ which psql
/usr/bin/psql
$ export PATH=/opt/local/lib/postgresql91/bin:$PATH
$ which psql
/usr/bin/psql
…I’m sincerely confused. Why is this happening?
What worked the best for solving this immediate issue was using
But please note.. this screwed up just about every other command — it really just solved the immediate issue (that the path wasn’t getting updated). I don’t think this is a great long term solution, and other answers are much appreciated.
On another note, specifying the host solves the problem for the question linked to above:
psql -h localhost -U postgres