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

Commit19a495c

Browse files
committed
Properly document rotatelogs, and add mention of it to pg_ctl manual page.
1 parent0cb27df commit19a495c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

‎doc/src/sgml/maintenance.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.33 2004/04/05 03:02:03 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.34 2004/05/14 20:01:19 momjian Exp $
33
-->
44

55
<chapter id="maintenance">
@@ -461,7 +461,7 @@ VACUUM
461461
you can send a <literal>SIGHUP</literal> signal to the
462462
<application>syslog</> daemon whenever you want to force it to
463463
start writing a new log file. If you want to automate log
464-
rotation, the <application>logrotate</application> program can be
464+
rotation, the <application>rotatelogs</application> program can be
465465
configured to work with log files from
466466
<application>syslog</application>.
467467
</para>
@@ -484,12 +484,12 @@ VACUUM
484484
pipe command:
485485

486486
<programlisting>
487-
pg_ctl start |logrotate
487+
pg_ctl start |rotatelogs /var/log/pgsql_log 86400
488488
</programlisting>
489489

490490
The <productname>PostgreSQL</> distribution doesn't include a
491491
suitable log rotation program, but there are many available on the
492-
Internet. For example, the <application>logrotate</application>
492+
Internet. For example, the <application>rotatelogs</application>
493493
tool included in the <productname>Apache</productname> distribution
494494
can be used with <productname>PostgreSQL</productname>.
495495
</para>

‎doc/src/sgml/ref/pg_ctl-ref.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.25 2003/11/29 19:51:39 pgsql Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.26 2004/05/14 20:01:19 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -87,13 +87,13 @@ PostgreSQL documentation
8787
server is started in the background, and standard input is attached to
8888
<filename>/dev/null</filename>. The standard output and standard
8989
error are either appended to a log file (if the <option>-l</option>
90-
option is used), or redirected to<application>pg_ctl</application>'s
90+
option is used), or redirected to <application>pg_ctl</application>'s
9191
standard output (not standard error). If no log file is chosen, the
9292
standard output of <application>pg_ctl</application> should be redirected
93-
to a file or piped to another process, for example a log rotating program,
94-
otherwise <command>postmaster</command>will write its output to the controlling
95-
terminal (from the background) and will not leavetheshell's
96-
process group.
93+
to a file or piped to another process such as a log rotating program
94+
like <application>rotatelogs</>;otherwisethe<command>postmaster</command>
95+
will write its output to the controlling terminal (fromthebackground)
96+
and will not leave the shell'sprocess group.
9797
</para>
9898

9999
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp