Re: Can't use passwords for users - Mailing list pgsql-general

From Tom Lane
Subject Re: Can't use passwords for users
Date
Msg-id 17259.1169229193@sss.pgh.pa.us
Whole thread Raw
In response to Can't use passwords for users  ("Stockho, Jonathan W " <jstockho@alionscience.com>)
List pgsql-general
"Stockho, Jonathan W " <jstockho@alionscience.com> writes:
> createuser: could not connect to database postgres: could not connect to
> server: No such file or directory
>             Is the server running locally and accepting connections on
> Unix domain socket "/tmp/.s.PGSQL.0"?

".0"?  That suggests that the program is trying to connect to port
number zero.  That's got nothing to do with passwords or any of the
other stuff you're going on about; it's trying to connect to the wrong
place.  You need to find out why.  Could you have "PGPORT=0" in your
environment for some reason?

BTW, you didn't really type "createuser test -pwprompt" did you?  Every
version of createuser as far back as 7.3 rejects that as invalid syntax.
If you've got a version that actually took it just like that, then
you've got a stone-age Postgres and your first move should be to
update to something that was released in this century.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Index bloat of 4x
Next
From: Guy Fraser
Date:
Subject: Re: Spam from EnterpriseDB?