Re: Fw: patch for pg_ctl.c to add windows service start-type - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Fw: patch for pg_ctl.c to add windows service start-type
Date
Msg-id AANLkTikxj-1ZyZd+32PiGPWQrh7zN-uQtekmXDcWEp+O@mail.gmail.com
Whole thread Raw
In response to Re: Fw: patch for pg_ctl.c to add windows service start-type  (Quan Zongliang <quanzongliang@gmail.com>)
Responses Re: Fw: patch for pg_ctl.c to add windows service start-type
List pgsql-hackers
On Fri, Aug 20, 2010 at 01:01, Quan Zongliang <quanzongliang@gmail.com> wrote:
> Because Windows's CreateService has serial start-type:
> SERVICE_AUTO_START
> SERVICE_BOOT_START
> SERVICE_DEMAND_START
> SERVICE_DISABLED
> SERVICE_SYSTEM_START
>
> Although all of them are not useful for pg service.
> I think it is better to use enum.

I don't see us ever using anything other than auto or demand. The
others aren't for "regular services", except for "disabled". And
adding a disabled service makes no sense :-) So I'm with Alvaro, I
think it's a good idea to simplify that.


--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: Avoiding deadlocks ...
Next
From: Dmitriy Igrishin
Date:
Subject: SQLSTATE of notice PGresult