postgres --version
brew install postgresbrew services start postgresql
pg_ctl -D /usr/local/var/postgres startbrew search postgresql
brew install postgresql@#pg_ctl command and you get an error about the user database not installed
createdb 'whoami': with tick marks, not single quotes!psql
psql utility function that lets you perform admin functionsbrew doctorbrew updatebrew uninstall postgresrm -rf rm -rf /usr/local/var/postgresrm -rf .psql_history .psqlrc .psql.local .pgpass .psqlrc.localbrew list to confirm postgres is actually deletedbrew updatebrew install postgresbrew install postgresql BEFORE BUNDLING IF YOU HAVEN'T INSTALLED
POSTGRESQL YET!!rails new app_name -T -d postgresqlpsql postgres\du/usr/local/opt/postgres/bin/createuser -s postgrespsql -U postgres
\password postgrespsql -U postgres OR psql postgres
psql postgres -U nameofuserCREATE DATABASE name; don't forget the semicolon!!!*CREATE ROLE nameofuser WITH PASSWORD '';GRANT ALL PRIVILEGES ON DATABASE nameofDB TO nameofuser;ALTER ROLE name CREATEDB;\q quits\list or \l lists all databases\dt lists all tables in the database\du lists all users\dx lists all extensions used in the db