Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aHwtG-0006Vv-AG for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Jan 2016 17:01:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aHwtF-0000I9-LG for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Jan 2016 17:01:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHwtC-0000GK-Mq for pgsql-hackers@postgresql.org; Sat, 09 Jan 2016 17:01:18 +0000 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHwt8-0003y3-UG for pgsql-hackers@postgresql.org; Sat, 09 Jan 2016 17:01:17 +0000 Received: from mfilter13-d.gandi.net (mfilter13-d.gandi.net [217.70.178.141]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 99F7E41C08E; Sat, 9 Jan 2016 18:01:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter13-d.gandi.net Received: from relay5-d.mail.gandi.net ([IPv6:::ffff:217.70.183.197]) by mfilter13-d.gandi.net (mfilter13-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id nPhswvQup0Q8; Sat, 9 Jan 2016 18:01:09 +0100 (CET) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id C2BAF41C089; Sat, 9 Jan 2016 18:01:04 +0100 (CET) Subject: Re: [COMMITTERS] pgsql: Blind attempt at a Cygwin fix To: Tom Lane , Alvaro Herrera References: <20160108153902.GA589413@alvherre.pgsql> <2308.1452269855@sss.pgh.pa.us> Cc: Michael Paquier , pgsql-hackers@postgresql.org, Marco Atzeri From: Andrew Dunstan Message-ID: <56913CCA.4080509@dunslane.net> Date: Sat, 9 Jan 2016 12:00:58 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <2308.1452269855@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 01/08/2016 11:17 AM, Tom Lane wrote: > Alvaro Herrera writes: >> Alvaro Herrera wrote: >>> Obviously this wasn't the best idea ever. Andrew suggests on IM to >>> revert this on Cygwin to just do the "isatty" check as originally. >> Here's a proposed patch. Thoughts? > Ugly, but it will hold the fort until someone can debug the service > code for Cygwin. > > 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. 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. cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers