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