Re: [COMMITTERS] pgsql: Blind attempt at a Cygwin fix

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, Marco Atzeri <marco(dot)atzeri(at)gmail(dot)com>
Subject: Re: [COMMITTERS] pgsql: Blind attempt at a Cygwin fix
Date: 2016-01-10 13:57:32
Message-ID: CAB7nPqQXghm_SdB5iniupz1atzMxk=95gv9A8ocdo83SXCNjeg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Sun, Jan 10, 2016 at 8:10 AM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com> wrote:
> On Sun, Jan 10, 2016 at 2:00 AM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>> I downloaded the official Cygwin packages into a Cygwin instance and checked
>> how they do things. As I rather expected, they do not use pg_ctl at all to
>> install or run as a service. Rather, they use the standard Cygwin service
>> utility cygrunsrv. This is all managed via a SYSV style init script.
>
> Thanks for the investigation!
>
>> So if anything I'd be inclined to disable all the service-related code in
>> pg_ctl for Cygwin, and treat it just as we treat Unix.
>
> We had better do the same for back branches then. Need of a patch?

OK, here is a patch to disable all the service-related code in pg_ctl
for cygwin. This time it is not a blind shot and this compiles
correctly. Changing the option layer is fine for me if this is
HEAD-only. For back-branches, I would suggest to do nothing, the
service-related code paths are not going to run anyway, any output
going to stderr.
--
Michael

Attachment Content-Type Size
cygwin-removal-service-master.patch text/x-diff 4.8 KB

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-01-10 16:32:05 Re: [COMMITTERS] pgsql: Avoid pin scan for replay of XLOG_BTREE_VACUUM
Previous Message Michael Paquier 2016-01-09 23:10:00 Re: [COMMITTERS] pgsql: Blind attempt at a Cygwin fix

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2016-01-10 16:32:05 Re: [COMMITTERS] pgsql: Avoid pin scan for replay of XLOG_BTREE_VACUUM
Previous Message Julien Rouhaud 2016-01-10 12:24:21 Re: GIN pending list clean up exposure to SQL