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