install postgresql locally mac code example
Example 1: postgres install mac
$ brew install postgresql
Example 2: how to open postgresql in mac
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install postgresql
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"