Re: 8.0: Absolute path required for INITDB? - Mailing list pgsql-bugs

From Tom Lane
Subject Re: 8.0: Absolute path required for INITDB?
Date
Msg-id 19337.1092082974@sss.pgh.pa.us
Whole thread Raw
In response to Re: 8.0: Absolute path required for INITDB?  (Josh Berkus <josh@agliodbs.com>)
List pgsql-bugs
Josh Berkus <josh@agliodbs.com> writes:
> Here's the issue: if you start initdb from a directory other than PGBASE, you
> can run into trouble:

> postgres@mole:/usr/local/pg80b/bin> ./initdb -D ../data
> initdb: file "/usr/local/pg80b/bin/share/postgresql/postgres.bki" does not
> exist

Actually, the problem seems to be specific to the use of "." or ".." in
the invocation path.  I have applied a patch that seems to fix it for
me.

> I don't recall having this issue with 7.4.

All that path-hacking logic is new in 8.0, I believe.  Before we were
using some shell utilities to do it for us.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Josh Berkus
Date:
Subject: Re: 8.0: Absolute path required for INITDB?
Next
From: Bruce Momjian
Date:
Subject: Re: 8.0: Absolute path required for INITDB?