PostgreSQL location with Postgres.app
-
04-10-2020 - |
Question
I am using the postgres.app. I get a terminal window when I start the postgres app. However, when I go into a bash shell and type in psql
it says Command not found
. I assume the path to the app is not set in my profile. How can I find out where the postgres.app is located and how do I tell that my profile?
Solution
You just need to set your $PATH
up.
This is covered on the Postgres.app website.
Add this to your ~/.bash_profile:
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
... then reopen your shell/terminal.
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange