--- postgresql-9.3.6.orig\src\bin\pg_ctl\pg_ctl.c	Mon Feb 02 22:43:50 2015
+++ postgresql-9.3.6\src\bin\pg_ctl\pg_ctl.c	Fri Aug 28 08:21:01 2015
@@ -215,7 +215,7 @@
 	 * On Win32, we print to stderr if running on a console, or write to
 	 * eventlog if running as a service
 	 */
-	if (!isatty(fileno(stderr)))	/* Running as a service */
+	if (getenv("PG_CTL_STDERR") == NULL && !isatty(fileno(stderr)))	/* Running
