Skip site navigation (1) Skip section navigation (2)

PGDATA problem

From: David Beechum <helium_isotope(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: PGDATA problem
Date: 2004-10-18 21:55:04
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
I just installed postgresql on my gentoo box.
everything works fine when i use the default data
directory '/var/lib/postgresql/data' but the problem
is i do not want my data stored there. so i created a
new directory owned by postgres
'/home/postgresql/data' and ran $initdb -D

it successfully created the database.
so $/etc/init.d/postgresql start
*directory not found: /var/lib/postgresql/data/
*your should create PGDATA directory first

so i figure i need to update my enviromental variable

$echo $PGDATA

the variable had not been set so i set it globably,
$echo $PGDATA

there PGDATA is set so it should work, shouldnt it?
so $/etc/init.d/postgresql start
*directory not found: /var/lib/postgresql/data/
*your should create PGDATA directory first

so i check the init.d script and verify it is using
$PGDATA for the data path and it is. so why is it
still trying to use '/var/lib/postgresql/data/' as the
data path even after i have set the enviromental
variable PGDATA to something different. HELP PLZ :)

thanks ~Dave

Do you Yahoo!?
Declare Yourself - Register online to vote today!

pgsql-admin by date

Next:From: Tom LaneDate: 2004-10-18 22:10:16
Subject: Re: postmaster -i option...
Previous:From: David Cancino MuñizDate: 2004-10-18 21:12:01
Subject: unsubscribe

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group