Re: Binary installer

Поиск
Список
Период
Сортировка
От Cyrille Chepelov
Тема Re: Binary installer
Дата
Msg-id 20040124093444.GA1327@chepelov.org
обсуждение исходный текст
Ответ на Re: Binary installer  ("Jochem van Dieten" <jochemd@oli.tudelft.nl>)
Список pgsql-hackers-win32
Le Fri, Jan 23, 2004, à 03:37:48PM +0100, Jochem van Dieten a écrit:
> Steve Tibbett said:
> > Gotta disagree with you there.. a good Windows app won't use the
> > environment at all.  Take a look at the environment of a typical
> > Windows server - the various services don't have any environment
> > variables related to them, it's all in the registry.
>
> I agree. Environment means you can't readily set PostgreSQL to run
> under a different user account because the environment is user
> specific.

Not true. There's a per-user section of environment, and a system-wide
section. From the program's point of view, both are merged.

> > Writing something into HKEY_LOCAL_MACHINE\Software\PostgreSQL that
> > says where Postgres is installed would be reasonable.. at startup
> > the Win32 code could simply read that variable from the registry and
> > set it into the environment so the rest of postgres can depend on it
> > being in the environment.
>
> I am not particular font of the registry either, gets messy quickly
> when you want to run different instances and setting permissions in
> the registry is no fun either (IMHO).
>
> Why not instead of looking in the registry for the location pass it
> over the command line? Then load from there and set up the
> user-specific environment.

You mean, -D ?

    -- Cyrille

--

В списке pgsql-hackers-win32 по дате отправления:

Предыдущее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: Microsoft releses Services for Unix
Следующее
От: Cyrille Chepelov
Дата:
Сообщение: Re: Binary installer