Trong trường hợp này, bạn có thể cài đặt PostgreSQL Client cho macOS bằng Homebrew đúng cách sau đó liên kết nó vì nó sẽ liên kết biểu tượng tất cả các công cụ vào /usr/local/bin thư mục.
Để khắc phục sự cố này, hãy chạy các lệnh sau:
$ brew services stop postgresql
$ brew install example@sqldat.com
$ brew services start example@sqldat.com
$ brew link --overwrite --force example@sqldat.com
Tham khảo: https://www.compose.com/ article / postgresql-tips-install-the-postgresql-client /