postgresql mac setup code example Example 1: postgres install mac $ brew install postgresql Example 2: install postgresql on mac brew install postgresql