pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Michael Paquier <michael.paquier@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Egon Kocjan <ekocjan@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13594: pg_ctl.exe redirects stderr to Windows Events Log if stderr is redirected to pipe
Date: Fri, 8 Jan 2016 09:16:43 -0500
Message-ID: <568FC4CB.6050904@dunslane.net> (raw)
In-Reply-To: <CAB7nPqTeCDcM-Rk-aR9Qycej_ydRLeUdHEY40Yu2MmR=JnPzYw@mail.gmail.com>
References: <CAB7nPqTN0KHXF1-a2gZO9LY+4xHZVEAT55mpv4WQKqBCBKguXw@mail.gmail.com>
	<20160107151108.GA420990@alvherre.pgsql>
	<CAB7nPqT02yA08jxTc-JNaNY3N5TZqrPYiXSn27Ly5Tb7ADV4nA@mail.gmail.com>
	<30361.1452219522@sss.pgh.pa.us>
	<CAB7nPqSbaFxi=4BrmMeoqAbbFz5uTAPcCKTMs4kvda_jHugzcA@mail.gmail.com>
	<4974.1452232924@sss.pgh.pa.us>
	<CAB7nPqTeCDcM-Rk-aR9Qycej_ydRLeUdHEY40Yu2MmR=JnPzYw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>



On 01/08/2016 02:11 AM, Michael Paquier wrote:
> On Fri, Jan 8, 2016 at 3:02 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Michael Paquier <michael.paquier@gmail.com> writes:
>>> On Fri, Jan 8, 2016 at 11:18 AM, Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (20+ messages)  latest in thread

Message-ID: <568FC4CB.6050904@dunslane.net>
Permalink:  ../568FC4CB.6050904@dunslane.net/
Also on:    postgresql.org/message-id/568FC4CB.6050904@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andrew@dunslane.net, michael.paquier@gmail.com, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, ekocjan@gmail.com
  Subject: Re: BUG #13594: pg_ctl.exe redirects stderr to Windows Events Log if stderr is redirected to pipe
  In-Reply-To: <568FC4CB.6050904@dunslane.net>
  References: <CAB7nPqTN0KHXF1-a2gZO9LY+4xHZVEAT55mpv4WQKqBCBKguXw@mail.gmail.com> <20160107151108.GA420990@alvherre.pgsql> <CAB7nPqT02yA08jxTc-JNaNY3N5TZqrPYiXSn27Ly5Tb7ADV4nA@mail.gmail.com> <30361.1452219522@sss.pgh.pa.us> <CAB7nPqSbaFxi=4BrmMeoqAbbFz5uTAPcCKTMs4kvda_jHugzcA@mail.gmail.com> <4974.1452232924@sss.pgh.pa.us> <CAB7nPqTeCDcM-Rk-aR9Qycej_ydRLeUdHEY40Yu2MmR=JnPzYw@mail.gmail.com> <568FC4CB.6050904@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox