Hi @VladD,
Can you provide more details about the connection? Is this an RDS/Aurora instance or an on-premise deployment? What version of Postgres are you using? Is the connection into a private VPC or is there a public IP?
Here are a couple links that might help, based on the answers above:
Hope that helps.
ws