Re: 8.0: Absolute path required for INITDB?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: josh(at)agliodbs(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: 8.0: Absolute path required for INITDB?
Date: 2004-08-09 20:22:54
Message-ID: 19337.1092082974@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches

Josh Berkus <josh(at)agliodbs(dot)com> writes:
> Here's the issue: if you start initdb from a directory other than PGBASE, you
> can run into trouble:

> postgres(at)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2004-08-09 20:39:11 Re: 8.0: Absolute path required for INITDB?
Previous Message CoL 2004-08-09 20:17:51 Re: 8.0: Absolute path required for INITDB?

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-08-09 20:29:32 Re: Small addition to syslogger.c
Previous Message CoL 2004-08-09 20:17:51 Re: 8.0: Absolute path required for INITDB?