how to use postgresql in mac code example
Example 1: how to open postgresql in mac
brew services start postgresqlpsql postgres
Example 2: postgresql create database mac
sudo psql -U postgres
psql: FATAL: role "postgres" does not exist
Example 3: how to open postgresql in mac
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Example 4: postgresql create database mac
postgres=# DROP USER USER_NAME;
DROP ROLE