Re: BUG #13594: pg_ctl.exe redirects stderr to Windows Events Log if stderr is redirected to pipe

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Egon Kocjan <ekocjan(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #13594: pg_ctl.exe redirects stderr to Windows Events Log if stderr is redirected to pipe
Date: 2016-01-08 23:04:25
Message-ID: CAB7nPqROdjQgDD53qpdeoKbbBmkuYJiHccgLu5WJu8O6UxedKg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Jan 8, 2016 at 11:55 PM, Alvaro Herrera
<alvherre(at)2ndquadrant(dot)com> wrote:
> Andrew Dunstan wrote:
>
>> On 01/08/2016 02:11 AM, Michael Paquier wrote:
>
>> >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 :-)
>
> Per IM conversation with Andrew, I pushed it blind and he'll set up an
> immediate BF run on brolga so we know quickly whether it worked.

And it failed. That's frustrating. I'll try to set up a cygwin
environment and address that.
--
Michael

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2016-01-09 01:57:36 Odd "operator does not exist" message
Previous Message Tom Lane 2016-01-08 21:35:28 Re: BUG #13857: Processes display old Beta2 name in ps