Problem is after installation from official site postgresql was not found:
locate bin/psql
Then we got /Library/PostgreSQL/10/bin/psql. Add this to PATH variable in .profile
export PATH=/Library/PostgreSQL/10/bin:$PATH
Problem is after installation from official site postgresql was not found:
locate bin/psql
Then we got /Library/PostgreSQL/10/bin/psql. Add this to PATH variable in .profile
export PATH=/Library/PostgreSQL/10/bin:$PATH