Thread: createuser fails

createuser fails

From
pgsql-bugs@postgresql.org
Date:
Pushkar (psuri@netcom-sys.com) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
createuser fails

Long Description
I am trying to install postgres on windows nt .
initdb worked fine , and also the createdb command.
But when i run any command like  createuser etc, i get the
following error
psql: connectDBStart() -- socket() failed: errno=106
Addresses in the specified family cannot be used with this socket

ipc-daemon and  postmaster are both running.
It is very urgent for me to run postgres on nt.
I would really appreciate if some one replies me back

Sample Code


No file was uploaded with this report

Re: createuser fails

From
Peter Eisentraut
Date:
pgsql-bugs@postgresql.org writes:

> I am trying to install postgres on windows nt .
> initdb worked fine , and also the createdb command.
> But when i run any command like  createuser etc, i get the
> following error
> psql: connectDBStart() -- socket() failed: errno=106
> Addresses in the specified family cannot be used with this socket

Try `createuser -h localhost ...'. By default, it uses Unix domain
sockets, which don't work on NT. (Hence, "specified family [namely
AF_UNIX] cannot be used...".)

Setting the environment variable PGHOST=localhost might be a good idea as
well.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/