Re: 8.0: Absolute path required for INITDB?

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


Why don't we just throw an error if it isn't an abolute path name,
rather than failing in a weird way?

---------------------------------------------------------------------------

Josh Berkus wrote:
> Tom,
>
> > Well, that does deserve investigation. But I've been initdb'ing
> > frequently and not noticed any problems. What configure switches
> > did you use exactly? Did you try to move the installation tree
> > after configure?
>
> 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
> This means you have a corrupted installation or identified
> the wrong directory with the invocation option -L.
> postgres(at)mole:/usr/local/pg80b/bin>
>
> I don't recall having this issue with 7.4.
>
> --
> -Josh Berkus
> Aglio Database Solutions
> San Francisco
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2004-08-09 23:58:07 Bug: century/millenium still broken
Previous Message Tom Lane 2004-08-09 20:22:54 Re: 8.0: Absolute path required for INITDB?

Browse pgsql-patches by date

  From Date Subject
Next Message Gavin Sherry 2004-08-09 22:16:34 CREATE DATABASE with tablespace fix
Previous Message Tom Lane 2004-08-09 20:29:32 Re: Small addition to syslogger.c