Update libraries/joomla/database/driver/postgresql.php

Take into account that pg_connect() takes the port as separate argument.