postgresql: use configured port when invoking psql

Without the port psql would always try to connect to PostgreSQL through the default port, even though another one is used. This leads to the service timing out.