Mac:安装PostgreSQL

来自WHY42
brew install postgresql
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

createuser -s postgres
psql -U postgres