Re: [BUGS] 8.0: Absolute path required for INITDB?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] 8.0: Absolute path required for INITDB?
Date: 2004-08-16 15:44:31
Message-ID: 200408161544.i7GFiV015877@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches


Patch to throw an error if -L is not an abolute path attached and
applied.

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

Josh Berkus wrote:
> 8.0 beta CVS of 8/8/2004:
>
> If a relative path is used for the -L option in initdb, the following fatal
> error happens:
>
> ./initdb -D ../data -L ../share/postgresql/
> <snip>
> creating system views ... ok
> loading pg_description ... ERROR: could not open file
> "../share/postgresql/postgres.description" for reading: No such file or
> directory
> child process exited with exit code 1
>
> Is this intentional? The first dozen or so commands work fine with a relative
> path, and this executes fine with an absolute path for both -D and -L.
>
> SuSE 9.1, GCC 3.3.3
>
> --
> Josh Berkus
> Aglio Database Solutions
> San Francisco
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

--
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

Attachment Content-Type Size
unknown_filename text/plain 897 bytes

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Martin Münstermann 2004-08-16 15:49:31 Re: [BUGS] 8.0.0beta1: -lpthread missing
Previous Message Tom Lane 2004-08-16 15:09:40 Re: 8.0 beta1: pg_dump/restore failing

Browse pgsql-patches by date

  From Date Subject
Next Message Martin Münstermann 2004-08-16 15:49:31 Re: [BUGS] 8.0.0beta1: -lpthread missing
Previous Message Bruce Momjian 2004-08-16 04:37:18 Re: fix schema ownership on first connection preliminary