My fault is I set the $PGDATA enviroment variable in /etc/sysconfig/pgsql/postgresql like usual in 8.4
renaming the file to postgresql-9.1 solve the isue.
Thanks guys!
El 9 de febrero de 2012 22:25, Daniel Vázquez <daniel2d2art@xxxxxxxxx> escribió:
Hi!I've set my PGDATA variable in profileexport PGDATA=/home/mydata/pgsql/dataTesting variable for correct set in enviroment$ echo $PGDATA/home/mydata/pgsql/databut when execute:$ sudo /etc/init.d/postgresql-9.1 initdbor execute:$ sudo /etc/init.d/postgresql-9.1 initdb -D /home/mydata/pgsql/dataThe cluster always is created on default path "/var/lib/pgsql/9.1/data/"Will install in CentOS 5.7Thx