How To Fix Heroku Postgres CLI
July 14, 2020 (updated: July 14, 2020)
I was trying to use the Postgres CLI for a Heroku Postgres database and got an error:
$ heroku pg:psql --app app-name |
It turned out to be because there were multiple versions of openssl
:
$ brew list --versions |
The solution was to change to an older version:
$ brew switch openssl 1.0.2s |
And it worked!
$ heroku pg:psql --app app-name |