Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc7c7861

Browse files
committed
Add mention of logrotate for syslog, from Robert Treat
1 parentdfafeb6 commitc7c7861

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

‎doc/src/sgml/maintenance.sgml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.25 2003/09/12 22:17:23 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.26 2003/10/09 19:05:09 momjian Exp $
33
-->
44

55
<chapter id="maintenance">
@@ -422,13 +422,14 @@ VACUUM
422422

423423
<para>
424424
The simplest production-grade approach to managing log output is to
425-
send it all to <application>syslog</> and let
426-
<application>syslog</> deal with file rotation. To do this, set
427-
the configurations parameter <literal>syslog</> to 2 (to log to <application>syslog</> only) in
428-
<filename>postgresql.conf</>. Then you can send a
429-
<literal>SIGHUP</literal> signal to the <application>syslog</>
430-
daemon whenever you want to force it to start writing a new log
431-
file.
425+
send it all to <application>syslog</> and let <application>syslog</>
426+
deal with file rotation. To do this, set the configurations parameter
427+
<literal>syslog</> to 2 (to log to <application>syslog</> only) in
428+
<filename>postgresql.conf</>. Then you can send a <literal>SIGHUP</literal>
429+
signal to the <application>syslog</> daemon whenever you want to force it
430+
to start writing a new log file. If you want to automate log rotation,
431+
the logrotate program can be configured to work with log files from syslog.
432+
432433
</para>
433434

434435
<para>

‎doc/src/sgml/runtime.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.211 2003/10/08 03:49:37 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.212 2003/10/09 19:05:09 momjian Exp $
33
-->
44

55
<Chapter Id="runtime">
@@ -1863,8 +1863,8 @@ SET ENABLE_SEQSCAN TO OFF;
18631863
Prefixes each message in the server log file with the process ID of
18641864
the server process. This is useful to sort out which messages
18651865
pertain to which connection. The default is off. This parameter
1866-
does not affect messages logged via <application>syslog</>, whichalways contain
1867-
the process ID.
1866+
does not affect messages logged via <application>syslog</>, which
1867+
always containthe process ID.
18681868
</para>
18691869
</listitem>
18701870
</varlistentry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp