Re: starting up database server + user postgres - Mailing list pgsql-novice

From Tom Lane
Subject Re: starting up database server + user postgres
Date
Msg-id 11031.1062450457@sss.pgh.pa.us
Whole thread Raw
In response to starting up database server + user postgres  (Jennifer Liu <jennliu@MIT.EDU>)
List pgsql-novice
Jennifer Liu <jennliu@MIT.EDU> writes:
> root# /usr/local/pgsql/bin/createdb test
> psql: 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.5432"?
> createdb: database creation failed

The PG postmaster isn't running, evidently.  You didn't say what Linux
distro you are using, so it's hard to give exact details about how to
start it, or to tell whether there's any preliminary setup you need to
do.  It seems odd that you have a postgres group but not a postgres
user, though.

> root# chown postgres /usr/local/pgsql/data
> chown: `postgres': invalid user

Is that directory already there?  If so, what user owns it?  That's
probably the user you want to start the postmaster as.

            regards, tom lane

pgsql-novice by date:

Previous
From: "Luis H."
Date:
Subject: Re: ORDER BY question
Next
From: "mathan"
Date:
Subject: Re: starting up database server + user postgres