When using postgresql on a remote server, dsn.sh can fail as there may not be a postgresql user available on the system. This still assumes that the package for psql-client is installed as the psql command will still be required.