Re: Specifying xlog directory during initdb is failing - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Specifying xlog directory during initdb is failing
Date
Msg-id 811.1212373645@sss.pgh.pa.us
Whole thread Raw
In response to Specifying xlog directory during initdb is failing  (Devrim GÜNDÜZ <devrim@CommandPrompt.com>)
Responses Re: Specifying xlog directory during initdb is failing
Re: Specifying xlog directory during initdb is failing
List pgsql-bugs
Devrim GÜNDÜZ <devrim@CommandPrompt.com> writes:
> I was testing -X option, and I cannot make it work. This is PostgreSQL
> 8.3.1 on Fedora 9:

> -bash-3.2$ initdb -d -X xlog/ -D data/

The root of the problem is that you can't use a relative path for -X:
it's not clear whether the path is relative to $PGDATA or the working
directory when you invoked initdb, and different bits of initdb
effectively make each of those assumptions.  I agree that the failure
mode is pretty opaque :-(.  I think the simplest solution is to reject
non-absolute path for -X; is there any real use-case for allowing it?
        regards, tom lane


pgsql-bugs by date:

Previous
From: Devrim GÜNDÜZ
Date:
Subject: Specifying xlog directory during initdb is failing
Next
From: Andrew Sullivan
Date:
Subject: Re: Specifying xlog directory during initdb is failing