On 8/10/2013 4:57 PM, karsten.lenz@gmx.ch wrote:
> The following bug has been logged on the website:
>
> Bug reference: 8380
> Logged by: Karsten Lenz
> Email address: karsten.lenz@gmx.ch
> PostgreSQL version: 9.2.4
> Operating system: CentOS 6.4
> Description:
>
> Hello,
>
>
> initdb is ignoring the options, i wnt install with differend data- and log
> dir and this is not working.
>
>
> Teste with -D, --pgdata, -X and --xlogdir, nothing works
>
>
> Do i have to switch to Enterprise DB Binary Installer? That thing works with
> different datadir.
if you change the default data directory via running initdb manually
with -D, the sysV init scripts in /etc/rc.d/init.d/postgresql-9.2 won't
know it unless you also create /etc/sysconfig/pgsql/9.2/postgresql-9.2
and put in the line...
PGDATA=/my/path/to/pg/data