Skip site navigation (1) Skip section navigation (2)

Re: registry vs. environment (was re:binary installer)

From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: registry vs. environment (was re:binary installer)
Date: 2004-01-23 18:15:19
Message-ID: 303E00EBDD07B943924382E153890E5434AA70@cuthbert.rcsinc.local (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
Tom Lane wrote:
> 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.

putenv() in windows modifies the environment for the current process,
and any process that the process calling putenv creates (but not
globally).   As long as no 3rd party software relies on any env.
variables, then this is ok.

Merlin

Responses

pgsql-hackers-win32 by date

Next:From: Tom LaneDate: 2004-01-23 18:24:48
Subject: Re: registry vs. environment (was re:binary installer)
Previous:From: Tom LaneDate: 2004-01-23 18:02:12
Subject: Re: registry vs. environment (was re:binary installer)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group