]> granicus.if.org Git - postgresql/commit
Fix syslog bug: if any messages are emitted to write_syslog before
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Oct 2005 20:53:56 +0000 (20:53 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Oct 2005 20:53:56 +0000 (20:53 +0000)
commitabd3f43b4c6fb298fa1eb12fe8d78c6c3e6e0532
tree5a6b47de21bedfbdee01fcb26ffaee1aeffaf829
parentf620098dc809e15262a5b08187beb92d789d33cb
Fix syslog bug: if any messages are emitted to write_syslog before
the facility has been set, the facility gets set to LOCAL0 and cannot
be changed later.  This seems reasonably plausible to happen, particularly
at higher debug log levels, though I am not certain it explains Han Holl's
recent report.  Easiest fix is to teach the code how to change the value
on-the-fly, which is nicer anyway.  I made the settings PGC_SIGHUP to
conform with log_destination.
doc/src/sgml/config.sgml
src/backend/utils/error/elog.c
src/backend/utils/misc/guc.c
src/include/utils/elog.h