initdb $PGDATA not working

From: Daniel Vázquez <daniel2d2art(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: initdb $PGDATA not working
Date: 2012-02-09 21:25:51
Message-ID: CA+KJVfx6X0sESZ_R4BjJSMTHdykxUnuo7vidRSYTAKc6=bZa=g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andy Colson 2012-02-09 21:39:26 Re: initdb $PGDATA not working
Previous Message Rich Shepard 2012-02-09 20:50:46 Re: Strategy for Primary Key Generation When Populating Table