Official page do not mention such case. But many users need only psql
without a local database (I have it on AWS). Brew do not have psql
.
You could also use homebrew to install libpq.
brew install libpq
This would give you psql, pg_dump and a whole bunch of other client utilities without installing Postgres.
You then add the installation directory to your path. In my case, the directory location is:
/usr/local/Cellar/libpq/10.3/bin