Install psql (PostgreSQL client) on MacOS

PostgreSQL is a database management system. psql is a command line tool to connect to PostgreSQL database.

Install psql

Install psql without PostgreSQL server with brew:

brew install libpq
brew link --force libpq

This will install Postgres client utilities like psql and pg_dump.