Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim(at)CommandPrompt(dot)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