postgresql: use configured port when invoking psql
Merge pull request #4294 from daogames/tb/psql-port-fix

postgresql: use configured port when invoking psql