diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-14 20:53:56 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-14 20:53:56 +0000 |
| commit | abd3f43b4c6fb298fa1eb12fe8d78c6c3e6e0532 (patch) | |
| tree | 5a6b47de21bedfbdee01fcb26ffaee1aeffaf829 /src/include/utils/elog.h | |
| parent | f620098dc809e15262a5b08187beb92d789d33cb (diff) | |
| download | postgresql-abd3f43b4c6fb298fa1eb12fe8d78c6c3e6e0532.tar.gz | |
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.
Diffstat (limited to 'src/include/utils/elog.h')
| -rw-r--r-- | src/include/utils/elog.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index f226f77291..264dfcc142 100644 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/elog.h,v 1.79 2005/06/10 16:23:10 neilc Exp $ + * $PostgreSQL: pgsql/src/include/utils/elog.h,v 1.80 2005/10/14 20:53:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -283,6 +283,9 @@ extern int Log_destination; /* Other exported functions */ extern void DebugFileOpen(void); extern char *unpack_sql_state(int sql_state); +#ifdef HAVE_SYSLOG +extern void set_syslog_parameters(const char *ident, int facility); +#endif /* * Write errors to stderr (or by equal means when stderr is |
