how to install postgres to mac os code example Example 1: postgres install mac $ brew install postgresql Example 2: install postgresql on mac brew install postgresql