From: | Daniel Vázquez <daniel2d2art(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: initdb $PGDATA not working |
Date: | 2012-02-09 22:42:29 |
Message-ID: | CA+KJVfx7Zug589etj4aRE2Hkm6eBt2iwv7Gj3eDC+nc5uPoN6w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
THX all !!
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(at)gmail(dot)com>escribió:
> 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
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Robins Tharakan | 2012-02-09 23:23:52 | Re: VIEW still referring to old name of field |
Previous Message | Andy Colson | 2012-02-09 22:38:18 | Re: Strategy for Primary Key Generation When Populating Table |