From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com> |
Cc: | Quan Zongliang <quanzongliang(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, David Fetter <david(at)fetter(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Fw: patch for pg_ctl.c to add windows service start-type |
Date: | 2010-09-30 08:12:15 |
Message-ID: | AANLkTik1bKo_YRkO1bW6mKnsBkfXSRVFROWejYrR8oqn@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Sep 30, 2010 at 04:40, Itagaki Takahiro
<itagaki(dot)takahiro(at)gmail(dot)com> wrote:
> Hi, I have a question about the latest patch.
>
> On Sun, Aug 22, 2010 at 11:03 PM, Quan Zongliang
> <quanzongliang(at)gmail(dot)com> wrote:
>> New patch attached. How about this?
>>> I don't see us ever using anything other than auto or demand. The
>>> others aren't for "regular services"
>
> + set_starttype(char *starttypeopt)
> + {
> + if (strcmp(starttypeopt, "a") == 0 || strcmp(starttypeopt, "auto") == 0)
> + pgctl_start_type = SERVICE_AUTO_START;
> + else if (strcmp(starttypeopt, "d") == 0 || strcmp(starttypeopt,
> "demand") == 0)
> + pgctl_start_type = SERVICE_DEMAND_START;
>
> It accepts only "a" and "auto" for auto, but "au" or "aut" are rejected.
> Is is an intended behavior? I think we can use prefix match here because
> we use the logic in some places. For example,
I think it's modeled on what we allow for the "-m" parameter, and ISTM
it's good to keep those consistent.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Bernd Helmle | 2010-09-30 08:12:48 | Re: starting to review the Extend NOT NULL representation to pg_constraint patch |
Previous Message | Pavel Stehule | 2010-09-30 08:02:14 | wip: for-in-array patch |