PostgreSQL on macOS
Install PostgreSQL using brew
brew install postgresql
List services maintained by brew
$ brew services list
Name Status User Plist
postgresql started lr ...
If you don't want it running as service you can manually start it with
postgres -D /usr/local/var/postgres