Technical questionAccepted answer
Heroku Postgres: "psql: FATAL: no pg_hba.conf entry for host"
steel
Feb 3
0 views1
There are a number of Heroku CLI Postgres commands that all return the same error. For example:
$ heroku pg:bloat
psql: FATAL: no pg_hba.conf entry for host "...", user "...", database "...", SSL off
At least one of these commands has worked in the past, but does not now.
The database appears to be working fine otherwise. I can access it via my application's interfaces.
I do not see a way to toggle SSL in the Heroku Postgres dashboard. What could be causing this and how could I fix it?
1 answer
Accepted answer · original discussion
steel
PermalinkFeb 4
It turns out that commands like heroku pg:bloat use the local installation of Postgres and psql under the hood. I recompiled my Postgres installation with ssl support (--with-openssl) and everything worked.
0 question comments
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.