It looks to me as though the db is either not running or not listening on the port. Is this a new install of openacs?
Gustaf, do you concur with this? (as opposed to the pg driver not working)
-Jim