Re: [HACKERS] [PATCHES] fork/exec patch

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Andrew Dunstan" <andrew(at)dunslane(dot)net>, "pgsql-hackers-win32" <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: [HACKERS] [PATCHES] fork/exec patch
Date: 2003-12-16 19:02:28
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE2A6941@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32

>> I think custom code will be needed. It could be in the form
>of a wrapper
>> or in the form of integrated code. But if you use one of the general
>> wrappers, it's going to be hard to teach it to send signals to the
>> postmaster in the way we want (regardless of which method is
>chosen for
>> signals)
>>
>
>Right. I expect we'll need 3 extra command line switches: one
>to install
>as a service, one to remove the service, and one to run as a
>service. Or
>possibly a small wrapper for the install/remove part, plus one extra
>command switch.

Normally, that would be handled by the installation program. But there'd
definitly be a need for a manual way to do it as well, yes. (There are
tools in the resource kit, but people shouldn't need that)

We'd probably need a tool like "pgsignal" or something that would send
signals to the backends. Since you can't use the kill commandline tool
(that one only supports what would be called kill -9 on unix)

>> But it's probably best to just get it up and running on a
>command prompt
>> first :-)
>>
>
>Indeed.
>
>Another question: do we plan to use the Windows event log
>instead of or as well as syslog?

Well, definitly at least as well as.
AFAIK, there is no builtin syslog support in Win32 (why should there
be), so if we want to provide both, we'd need to either implement the
syslog client ourselves, or find some good place to borrow it from.
Question is, would anyone use it. The evenlog is what windows people are
used to using, and any large shop will have things set up for handling
them.
Based on this, I'd vote instead of. But if we can do it at little extra
cost (e.g. there is a good syslog client we can borrow), then why not do
both as long as it's cheap.

//Magnus

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Merlin Moncure 2003-12-16 19:12:21 Re: [HACKERS] [PATCHES] fork/exec patch
Previous Message Merlin Moncure 2003-12-16 18:55:45 Re: [HACKERS] [PATCHES] fork/exec patch