Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-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

pgsql-bugs by date

Next:From: Bruce MomjianDate: 2004-08-09 20:39:11
Subject: Re: 8.0: Absolute path required for INITDB?
Previous:From: CoLDate: 2004-08-09 20:17:51
Subject: Re: 8.0: Absolute path required for INITDB?

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group