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

Re: registry vs. environment (was re:binary

From: Ronald Kuczek <kuczek(at)kuczek(dot)pl>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>,pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: registry vs. environment (was re:binary
Date: 2004-02-12 18:37:24
Message-ID: 402BC7E4.3010502@kuczek.pl (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
U┼╝ytkownik Bruce Momjian wrote:

>I assumed all environment variables would be exported to the process. 
>The problem is allowing environment variables to override registry
>settings.
>
>One idea would be to do both --- if an environment variable isn't set,
>get the value from the registry and set the envronment variable.  If the
>environment variable is set, use that instead of the registry --- that
>might be the best of both worlds.
>  
>

Enviroment variables are stored in 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session 
Manager\Environment.
There is no problem to look there if any variable is set or not and - to 
add a registry key with new variable or to modify existing.


Rony


In response to

Responses

pgsql-hackers-win32 by date

Next:From: Magnus HaganderDate: 2004-02-12 18:38:52
Subject: Re: registry vs. environment (was re:binary installer)
Previous:From: Bruce MomjianDate: 2004-02-12 17:47:11
Subject: Re: registry vs. environment (was re:binary

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