host is left empty, but you could be on to something there, because the method of connecting to localhost is very different from windows. So DBI could be looking in the wrong directory for postgres config. I'll look into it further, thanks!! For the whole picture: only the dbname and password are specified, the rest of the connect is left to default.