how to check if your psql installed in mac code example
Example 1: how to open postgresql in mac
brew services start postgresqlpsql postgres
Example 2: how to open postgresql in mac
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"