Re: postgresql installation

From: Cory Kempf <ckempf(at)enigami(dot)com>
To: pgsql-hackers(at)postgresql(dot)org(dot)pgsql-admin(at)postgresql(dot)org(dot)pgsql-questions(at)postgresql(dot)org
Subject: Re: postgresql installation
Date: 2000-01-12 16:23:35
Message-ID: 5faembw96k.fsf@singularity.enigami.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-hackers

"Netra systems" <julien(at)netra-systems(dot)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(at)enigami(dot)com <http://www.enigami.com/~ckempf/>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Hideyuki Kawashima 2000-01-12 19:24:38
Previous Message Bruce Momjian 2000-01-12 14:42:28 Re: [ADMIN] Datetypes

Browse pgsql-general by date

  From Date Subject
Next Message davidb 2000-01-12 16:26:16 Fw: [GENERAL] identifying performance hits: how to ???
Previous Message The Hermit Hacker 2000-01-12 16:23:23 Re: [GENERAL] identifying performance hits: how to ???

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2000-01-12 16:26:05 Re: [HACKERS] Re: [SQL] createdb -D xxxx not working
Previous Message The Hermit Hacker 2000-01-12 16:19:59 Re: [HACKERS] psql -f inconsistency with "copy from stdin"