I am trying to connect to database using pgbouncer. Our db is POSTGRESQL which run on the managed service given by AZURE. Now after configuring Pgbouncer.ini file on Ubuntu 18.04 LTS I am facing the following issue: Whenever I try connecting using localhost :
psql -U user -h localhost -p 6432 abcd
It'll give the output as
psql: ERROR: no pg_hba.conf entry for host "x,x,x,xx", user "username", database "dbname", SSL off
I am quite intrigued I haven't given such config they why still pgbouncer is looking for pg_hba.conf file.