Creating database cluster

From: Joseph Maxwell <jemaxwell(at)jaymax(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Creating database cluster
Date: 2002-06-16 19:59:30
Message-ID: 3D0CEE21.BA42FCAD@jaymax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I am setting up PostgreSQL version 7.2.1, with all default settings on a
BSD platform ,4.5-RELEASE FreeBSD.
I have created user postgres and chown /usr/local/pgsql/data to
postgres. Kept postgres group as wheel. On initialization of the
database the following was obtained:==>

hostname# initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/initdb: cannot create /dev/null:
permission denied
/usr/local/pgsql/bin/initdb: cannot create /dev/null:
permission denied
The program
'/usr/local/pgsql/bin/postgres'
needed by initdb does not belong to PostgreSQL version 7.2.1,
or
there may be a configuration problem.

This was the error message issued by that program:
/usr/local/pgsql/bin/initdb: cannot create /dev/null:
permission denied

Should this be run as root, since it is attempting to do a 'create
/dev/null', the Administrator's Guide shows that it should be executed
as postgres. [All executables in /usr/local/pgsql/bin have 755
permissions.
Advice, solutions?
Thanks

--- Joe ---

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2002-06-16 20:36:31 Re: Creating database cluster
Previous Message Tom Lane 2002-06-16 19:20:58 Re: slow INSERTS :((