how to connect postgresql in mac os code example
Example 1: how to open postgresql in mac
brew services start postgresqlpsql postgres
Example 2: can't connect to postgresql mac os
rm -f /usr/local/var/postgres/postmaster.pid
brew services restart postgresql