Re: pgsql-server: Use strdup in pg_ctl for canonicalize_path

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server: Use strdup in pg_ctl for canonicalize_path
Date: 2004-07-12 19:17:49
Message-ID: 200407121917.i6CJHnK02301@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Tom Lane wrote:
> momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian) writes:
> > Use strdup in pg_ctl for canonicalize_path on environment variable.
> > Simplify postmaster call too.
>
> You're not doing very well with this project :-(. pg_ctl is now
> actively broken, because the PGDATA value passed down to the
> bootstrap backend is the one in the environment variable. The
> previous coding canonicalized that, this does not.

I didn't think we could modify the environment variables like that
portably. Also, it is not even needed because we now do the proper
canonicalization in the postmaster.

> I do not like the "simplified" postmaster.c coding either; it may
> save one line but it is harder to understand.

OK, reverted that part.

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

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2004-07-12 19:18:27 pgsql-server: canonicalization adjustments.
Previous Message Bruce Momjian 2004-07-12 19:15:20 pgsql-server: Put back canonicalization of PGDATA environment variable.