From: David Beechum <helium_isotope@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: PGDATA problem
Date: Mon, 18 Oct 2004 14:55:04 -0700 (PDT)
Message-ID: <20041018215504.68925.qmail@web60005.mail.yahoo.com> (raw)
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
/home/postgresql/data
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
PGDATA
$echo $PGDATA
the variable had not been set so i set it globably,
then
$echo $PGDATA
/home/postgresql/data
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!
http://vote.yahoo.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: helium_isotope@yahoo.com
Subject: Re: PGDATA problem
In-Reply-To: <20041018215504.68925.qmail@web60005.mail.yahoo.com>
References: <20041018215504.68925.qmail@web60005.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox