Re: postgresql installation - Mailing list pgsql-hackers

From Cory Kempf
Subject Re: postgresql installation
Date
Msg-id 5faembw96k.fsf@singularity.enigami.com
Whole thread Raw
In response to postgresql installation  ("Netra systems" <julien@netra-systems.com>)
List pgsql-hackers
"Netra systems" <julien@netra-systems.com> writes:

> hello,
> i have pb with the postgre sql installation :
> i compile all .. ok
> but when i want to run postmaster or anything else it say : no db dir :
> data/../template1 ...
> i have no data dir in my postgre dinstalled dir ....
> how can i have this dir with all into ?

Have you run initdb?  My guess is no.

Also, when you run initdb, the data directory it uses (I use /var/lib/pgsql,
which I set up by having my .zshrc file export PGDATA=/var/lib/pgsql
for my postgres account) needs to be the same as that passed to postmaster
via the -D option.

Oh, initdb really should be run as the postgres user.  Definately not as
root!  Make sure your permissions are set up ahead of time!

+C



--
Have you signed up to be a bone marrow doner?  All it takes is a simple
blood test, and it can save a life.  <http://www.marrow.org>

Cory Kempf           Macintosh / Unix Consulting & Software Development
ckempf@enigami.com   <http://www.enigami.com/~ckempf/>

pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: [HACKERS] FETCH without FROM/IN
Next
From: Zeugswetter Andreas SB
Date:
Subject: AW: [HACKERS] Enhancing PGSQL to be compatible with Informix SQL