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

From Magnus Hagander
Subject Re: registry vs. environment (was re:binary
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE34B208@algol.sollentuna.se
Whole thread Raw
Responses Re: registry vs. environment (was re:binary
List pgsql-hackers-win32
> > I'm not clear *which* settings it is proposed to set in the
> registry,
> > nor how possible it will be to override the settings, and
> with which
> > mechanism.
>
> I pretty much agree with Andrew here. Frankly, I think this
> whole discussion "registry vs env" is a bit pointless.
>
> What *exactly* does anyone think will need to be put in the registry?
>
> Surely, our Win32 service wrapper can just allow something like this:
>
>     postgres /regserver servicename <command line args go here>
>
> So, if I want to have multiple servers registered, I could do:
>     postgres /regserver MyPGServer_1 -D c:/data1
>     postgres /regserver MyPGServer_2 -D c:/data2
> and so on.

Where do you plan to store this data, if not in the registry?

Can *all* env variable settings be set on the commandline as well? If
so, we can just use a single registry key to store a commandline for the
service.  If not, then there need to be some way of changing them
per-instance.


> And of course, you can always run another instance from the
> command line, or have a single instance registered that takes
> all its args from the environment, or ...

Yes, certainly.


//Magnus

pgsql-hackers-win32 by date:

Previous
From: Ronald Kuczek
Date:
Subject: Re: registry vs. environment (was re:binary
Next
From: Claudio Natoli
Date:
Subject: Re: registry vs. environment (was re:binary