mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.28 2005/10/13 22:55:19 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.29 2005/10/14 20:53:55 tgl Exp $
|
||||
-->
|
||||
<chapter Id="runtime-config">
|
||||
<title>Run-time Configuration</title>
|
||||
@ -2254,7 +2254,8 @@ SELECT * FROM parent WHERE key = 2400;
|
||||
the default is <literal>LOCAL0</>. See also the
|
||||
documentation of your system's
|
||||
<application>syslog</application> daemon.
|
||||
This option can only be set at server start.
|
||||
This option can only be set at server start or in the
|
||||
<filename>postgresql.conf</filename> configuration file.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -2271,7 +2272,8 @@ SELECT * FROM parent WHERE key = 2400;
|
||||
<productname>PostgreSQL</productname> messages in
|
||||
<application>syslog</application> logs. The default is
|
||||
<literal>postgres</literal>.
|
||||
This option can only be set at server start.
|
||||
This option can only be set at server start or in the
|
||||
<filename>postgresql.conf</filename> configuration file.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -2581,8 +2583,8 @@ SELECT * FROM parent WHERE key = 2400;
|
||||
<varname>log_statement</> to be logged. When using this option,
|
||||
if you are not using <application>syslog</>, it is recommended
|
||||
that you log the PID or session ID using <varname>log_line_prefix</>
|
||||
so that you can link the statement to the
|
||||
duration using the process ID or session ID. The default is
|
||||
so that you can link the statement message to the later
|
||||
duration message using the process ID or session ID. The default is
|
||||
<literal>off</>. Only superusers can change this setting.
|
||||
</para>
|
||||
</listitem>
|
||||
|
Reference in New Issue
Block a user