Cant connect to db using postgres details
When I try and connect to the database directly using psql, I get
When I try to do it programatically (Go code)
It hangs for ages, before I end up receiving:
Interestingly this looks like the cli is using IPV4 and the Go Postgres cli is using IPV6, both failing.
I have created the database about 20 minutes ago. I wondered if there is any firewalling going on or something I need to change?
When I try to do it programatically (Go code)
dsn := fmt.Sprintf("user=%s password=%s host=%s port=5432 dbname=postgres", USER, PASSWORD, HOST)It hangs for ages, before I end up receiving:
Interestingly this looks like the cli is using IPV4 and the Go Postgres cli is using IPV6, both failing.
I have created the database about 20 minutes ago. I wondered if there is any firewalling going on or something I need to change?