Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aHXrE-0007X7-3P for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Jan 2016 14:17:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aHXrD-0000b1-MG for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Jan 2016 14:17:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHXqY-0008D2-Qg for pgsql-bugs@postgresql.org; Fri, 08 Jan 2016 14:16:54 +0000 Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHXqV-0007yT-3M for pgsql-bugs@postgresql.org; Fri, 08 Jan 2016 14:16:53 +0000 Received: from mfilter16-d.gandi.net (mfilter16-d.gandi.net [217.70.178.144]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 13FCBFB8C6; Fri, 8 Jan 2016 15:16:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter16-d.gandi.net Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter16-d.gandi.net (mfilter16-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id G8_tgQGTAkvg; Fri, 8 Jan 2016 15:16:46 +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 relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 25A50FB8F0; Fri, 8 Jan 2016 15:16:44 +0100 (CET) Subject: Re: BUG #13594: pg_ctl.exe redirects stderr to Windows Events Log if stderr is redirected to pipe To: Michael Paquier , Tom Lane References: <20160107151108.GA420990@alvherre.pgsql> <30361.1452219522@sss.pgh.pa.us> <4974.1452232924@sss.pgh.pa.us> Cc: Alvaro Herrera , Egon Kocjan , PostgreSQL mailing lists From: Andrew Dunstan Message-ID: <568FC4CB.6050904@dunslane.net> Date: Fri, 8 Jan 2016 09:16:43 -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: Content-Type: text/plain; charset=utf-8; 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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 01/08/2016 02:11 AM, Michael Paquier wrote: > On Fri, Jan 8, 2016 at 3:02 PM, Tom Lane wrote: >> Michael Paquier writes: >>> On Fri, Jan 8, 2016 at 11:18 AM, Tom Lane wrote: >>>> brolga is still unhappy: >>> ... Now, backbranches are proving that compiling pg_ctl.c with those >>> routines copied in it actually works fine, so based on my limited time >>> for the next couple of days, it may be better to just revert the patch >>> entirely on HEAD and apply what has been pushed into back branches to >>> stabilize the buildfarm, this will address the bug entirely. And it is >>> no good to keep the buildfarm red for long, >> Hm, narwhal just reported in green, which I was not expecting, and so did >> frogmouth. So brolga seems like an outlier. I think reverting might be >> an overreaction. At this point the question is more like "how is brolga >> different from the other non-MSVC Windows critters?". Perhaps Andrew >> can offer some insight. > That's a good sign at least :) > > Looking at the logs, the main difference is that win32security.c is > not compiled in -lpgport for cygwin, and cygwin goes through > src/include/port/win32.h to refer to some routines, so I would think > that the correct fix is to add win32security.c to the list of OBJS for > cygwin. So the attached is correct perhaps? That's a blind fix I don't > have cygwin set up on my machines now. I'll test it when I get a moment. Thanks for the patch. I see this service code goes back probably to the first commit of pg_ctl.c, which means it's going to have been either my fault or Bruce's :-) TBH I'm not sure how to run postgres as a service on Cygwin. In general I would expect it to be via cygrunsrv, like other services I do actually run (cron and cygserver), rather than via pg_ctl. Anyway, for now lets see if we can get it building again. cheers andrew -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs