Re: registry vs. environment (was re:binary installer) - Mailing list pgsql-hackers-win32

From Bruce Momjian
Subject Re: registry vs. environment (was re:binary installer)
Date
Msg-id 200401261749.i0QHn4X08073@candle.pha.pa.us
Whole thread Raw
In response to Re: registry vs. environment (was re:binary installer)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers-win32
Tom Lane wrote:
> "Merlin Moncure" <merlin.moncure@rcsonline.com> writes:
> > I think there are a couple of things about this issue that have not been
> > completely thought out.  Moving off of an environment based home
> > variable should not be taken lightly.  Switching the runtime environment
> > variables to use the registry will have several unintended consequences:
>
> I agree that we do not want to start hacking the parts of the code that
> depend on environment variables.  A reasonable compromise would probably
> be to have a small chunk of Windows-specific code at startup that reads
> the registry and installs the values it finds there by doing putenv().
> Thereafter everything operates the same as on Unix.

Added to Win32 project page:

    <li>store setting in the registry and set environment
    variables in the process</li>

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

pgsql-hackers-win32 by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: Microsoft releses Services for Unix
Next
From: Bruce Momjian
Date:
Subject: Re: Microsoft releses Services for Unix