Re: Createdb Problems - Mailing list pgsql-novice

From Louise Cofield
Subject Re: Createdb Problems
Date
Msg-id 005301c3a579$12046690$7801a8c0@Louise
Whole thread Raw
In response to Re: Createdb Problems  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Createdb Problems
Re: Createdb Problems
List pgsql-novice
We changed the ownership of all the postgres files and directories to
postgres.  Any further ideas?

Thanks.

Louise

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Friday, November 07, 2003 2:41 PM
To: Louise Cofield
Cc: pgsql-novice@postgresql.org
Subject: Re: [NOVICE] Createdb Problems


"Louise Cofield" <lcofield@box-works.com> writes:
> The initdb seemed to go fine, the postmaster is running in the
> background, but createdb testdb results in this:

> FATAL:  user "postgres" does not exist
> psql: FATAL:  user "postgres" does not exist
> createdb:  database creation failed

> whoami shows that I am clearly "postgres"

Sounds like you weren't postgres when you ran initdb.  The only
initially existing PG user will have the name of the Unix user who ran
initdb.  Check the ownership of the files under $PGDATA if you aren't
sure what you did.

            regards, tom lane


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Createdb Problems
Next
From: "Louise Cofield"
Date:
Subject: Re: Createdb Problems