From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Fred Yankowski <fred(at)ontosys(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: plan for running postmaster directly as NT service |
Date: | 2001-01-27 16:03:10 |
Message-ID: | 21816.980611390@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Fred Yankowski <fred(at)ontosys(dot)com> writes:
> a) The 'install' and 'remove' code is quite bulky, although simple.
> Is it OK to create a new source file for it, rather than working it
> into some existing file?
I think this'd be a lot easier to sell (and probably to implement)
if the NT-specific stuff is a separate, arm's-length wrapper around
the standard Unix version. Possibly you want something that replaces
src/backend/main/main.c in an NT build.
> b) How can the service log error messages? Is there any syslog type
> facility?
Syslog support exists. There's still a lot of debugging-type code that
scribbles to stderr, but (at least for a first cut) you could just let
that go to the bit bucket.
> c) What is a good way for the supervisory thread to communicate with
> the main thread and shut it down cleanly?
Send it an appropriate signal, same as pg_ctl does.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-01-27 16:15:39 | Re: Ungraceful handling of fatal flex errors |
Previous Message | Magnus Hagander | 2001-01-27 15:58:16 | RE: plan for running postmaster directly as NT service |