As our postgresql is listening on public IP, I have manually restricted it to our servers using iptables + ip6tables