Fix connection to posgtres db using unix socket (#1489132)