Path expansion in initdb

Lists: pgsql-hackerspgsql-patches
From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Path expansion in initdb
Date: 2004-11-02 00:34:52
Message-ID: 200411020134.52513.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-patches

It used to be that calling

initdb -D /some/where

suggested starting

postmaster -D /some/where

and

./mydir/bin/initdb -D ./mydir/var/data

suggested starting

./mydir/bin/postmaster -D ./mydir/var/data

In the current sources, the path to the postmaster is fully expanded in
either case (resulting in something like
/home/peter/./mydir/bin/postmaster in the second case). (Curiously,
the data directory path is not changed.) I don't find this to be an
improvement. Is there a reason for this change?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] Path expansion in initdb
Date: 2004-11-29 01:13:49
Message-ID: 200411290113.iAT1Dnb27506@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-patches

Peter Eisentraut wrote:
> It used to be that calling
>
> initdb -D /some/where
>
> suggested starting
>
> postmaster -D /some/where
>
> and
>
> ./mydir/bin/initdb -D ./mydir/var/data
>
> suggested starting
>
> ./mydir/bin/postmaster -D ./mydir/var/data
>
> In the current sources, the path to the postmaster is fully expanded in
> either case (resulting in something like
> /home/peter/./mydir/bin/postmaster in the second case). (Curiously,
> the data directory path is not changed.) I don't find this to be an
> improvement. Is there a reason for this change?

I have applied the following patch to address your concerns. We needed
this anyway because we were not using native paths in the display.

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