postgresql/src
Tom Lane 3d5282c6f0 Emit a log message if output is about to be redirected away from stderr.
We've seen multiple cases of people looking at the postmaster's original
stderr output to try to diagnose problems, not realizing/remembering that
their logging configuration is set up to send log messages somewhere else.
This seems particularly likely to happen in prepackaged distributions,
since many packagers patch the code to change the factory-standard logging
configuration to something more in line with their platform conventions.

In hopes of reducing confusion, emit a LOG message about this at the point
in startup where we are about to switch log output away from the original
stderr, providing a pointer to where to look instead.  This message will
appear as the last thing in the original stderr output.  (We might later
also try to emit such link messages when logging parameters are changed
on-the-fly; but that case seems to be both noticeably harder to do nicely,
and much less frequently a problem in practice.)

Per discussion, back-patch to 9.3 but not further.
2013-08-13 15:24:52 -04:00
..
backend Emit a log message if output is about to be redirected away from stderr. 2013-08-13 15:24:52 -04:00
bin pg_dump: avoid schema qualification for ALTER ... OWNER 2013-08-13 11:45:56 -04:00
common pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
include Emit a log message if output is about to be redirected away from stderr. 2013-08-13 15:24:52 -04:00
interfaces Improve handling of pthread_mutex_lock error case 2013-08-01 15:42:07 -04:00
makefiles Install all a Makefile's extension controls, not just the first. 2013-07-03 19:03:31 -04:00
pl PL/Python: Adjust the regression tests for Python 3.3 2013-08-11 09:20:16 -04:00
port Send SIGKILL to children if they don't die quickly in immediate shutdown 2013-06-28 17:49:46 -04:00
template Remove _FORTIFY_SOURCE 2012-10-10 21:42:38 -04:00
test Message punctuation and pluralization fixes 2013-08-09 08:02:44 -04:00
timezone pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
tools pgtest: allow passing parameters, e.g. -s/--silent 2013-08-05 19:59:52 -04:00
tutorial Modernize string literal syntax in tutorial example. 2013-01-19 17:20:32 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Improve support for building PGXS modules with VPATH. 2013-07-01 12:53:05 -04:00
Makefile.shlib Add pkg-config files for libpq and ecpg libraries 2013-03-31 16:58:40 -04:00
nls-global.mk NLS: Use msgmerge --previous option 2012-12-13 23:12:12 -05:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00