diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index bae6c22a8133f64fe7ac95a0a6f88cc304e20906..acfeee8e9185d6083154d0ae7f38e8f203cd68a8 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -210,7 +210,7 @@ write_stderr(const char *fmt,...) * On Win32, we print to stderr if running on a console, or write to * eventlog if running as a service */ - if (!pgwin32_is_service()) /* Running as a service */ + if (pgwin32_is_service()) /* Running as a service */ { char errbuf[2048]; /* Arbitrary size? */