Glen Eustace <geustace(at)godzone(dot)net(dot)nz> writes:
>>> My apologies, I shouldn't have used the generic socket error 'Connection
>>> refused'. What I am getting are errors like
>>> "Could not connect to database" from libnss-pgsql
> This is the exact message from libnss-pgsql,
While you are at it, you should complain to the libnss-pgsql authors
about the inadequacy of the error message. It should at least be
repeating the libpq error message ...
regards, tom lane