If you try to connect from go to pgbouncer you may see error message “pq: SSL is not enabled on the server” although when you connect directly into postgresql everything is working.

If so you have possibilities:

  1. enable SSL on pgbouncer (https://pgbouncer.github.io/faq.html#how-to-use-ssl-connections-with-pgbouncer) – but it did not work for me
  2. disable SSL setting database URI to “postgres://username:password@host_ip:port/db_name?sslmode=disable” – see here