On 2/9/2012 3:25 PM, Daniel Vázquez wrote:
Hi!
I've set my PGDATA variable in profile
export PGDATA=/home/mydata/pgsql/data
Testing variable for correct set in enviroment
$ echo $PGDATA
/home/mydata/pgsql/data
but when execute:
$ sudo /etc/init.d/postgresql-9.1 initdb
or execute:
$ sudo /etc/init.d/postgresql-9.1 initdb -D /home/mydata/pgsql/data
The cluster always is created on default path "/var/lib/pgsql/9.1/data/"
Will install in CentOS 5.7
Thx
I'm guessing /etc/init.d/postgresql-9.1 is a script that is ignoring
your arguments: initdb, $PGDATA, and -D /path/.
I'd say dont use that script and go right for the origional initdb.
-Andy
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general