From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: mario@emmenlauer.de
Subject: BUG #15363: Logging unexpectedly goes to system event log instead of stderr
Date: Tue, 04 Sep 2018 21:30:18 +0000
Message-ID: <153609661847.23143.7555891587635366496@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15363
Logged by: Mario Emmenlauer
Email address: mario@emmenlauer.de
PostgreSQL version: 10.3
Operating system: Windows 7 x64
Description:
Dear All,
For the past days I've been plagued by a problem where starting postgres.exe
failed. The server postgres.exe would just not start, and stdout and stderr
where completely empty. Even with debugging mode -d 5 there was absolutely
no output. Finally I found the problem (a permission issue about being a
privileged user) with the help of a message in the system event log.
My question is not about the failed startup, but about the logging. I am
confused why the permission problem was logged to Windows system log instead
to stdout/stderr? My postgresql.conf is the default from initdb.exe and
contains only the default #log_destination = 'stderr'. The documentation at
https://www.postgresql.org/docs/current/static/runtime-config-logging.html
says "The default is to log to stderr only".
I'd like to run postgres.exe in my own watchdog, and it works nicely on
Linux and MacOSX. I was relying to see all issues on stdout/stderr. Is it
possible to do the same on Windows, to see absolutely all issues on
stdout/stderr?
Thanks a lot for the very great work, and all the best,
Mario Emmenlauer
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: noreply@postgresql.org, mario@emmenlauer.de
Subject: Re: BUG #15363: Logging unexpectedly goes to system event log instead of stderr
In-Reply-To: <153609661847.23143.7555891587635366496@wrigleys.postgresql.org>
References: <153609661847.23143.7555891587635366496@wrigleys.postgresql.org>
* 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