From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
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 11:55:35 -0300
Message-ID: <20160108145535.GA580550@alvherre.pgsql> (raw)
In-Reply-To: <568FC4CB.6050904@dunslane.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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.
> 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.
Yeah, I guess you'd normally you'd do that, but the point is that the OP
was using pg_ctl to control one that's *not* a service and the logs were
still sent to Event Log because of the bug fixed here.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: alvherre@2ndquadrant.com, andrew@dunslane.net, michael.paquier@gmail.com, tgl@sss.pgh.pa.us, 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: <20160108145535.GA580550@alvherre.pgsql>
References: <568FC4CB.6050904@dunslane.net> <20160108145535.GA580550@alvherre.pgsql>
* 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