この場合、Homebrewを使用してmacOS用のPostgreSQLクライアントを適切にインストールし、それをリンクすると、すべてのツールが/usr/local/binにシンボリックリンクされます。 ディレクトリ。
この問題を修正するには、次のコマンドを実行します。
$ brew services stop postgresql
$ brew install example@sqldat.com
$ brew services start example@sqldat.com
$ brew link --overwrite --force example@sqldat.com
参照: https://www.compose.com/ articles / postgresql-tips-installing-the-postgresql-client /