From 10afaf472a89f46ca0ac570bd88bdf4e40f42bed Mon Sep 17 00:00:00 2001 From: Bruce Momjian <bruce@momjian.us> Date: Mon, 15 Mar 2004 14:15:45 +0000 Subject: [PATCH] Mention Linux syslog will sync lines to disk, and describe how to disable it. --- doc/TODO | 2 +- doc/src/sgml/maintenance.sgml | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/doc/TODO b/doc/TODO index 8400395ce47..6da74a7748c 100644 --- a/doc/TODO +++ b/doc/TODO @@ -1,6 +1,6 @@ TODO list for PostgreSQL ======================== -Last updated: Sat Mar 13 18:17:39 EST 2004 +Last updated: Mon Mar 15 09:06:53 EST 2004 Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) diff --git a/doc/src/sgml/maintenance.sgml b/doc/src/sgml/maintenance.sgml index f8372b4f294..e1af27c6ee2 100644 --- a/doc/src/sgml/maintenance.sgml +++ b/doc/src/sgml/maintenance.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.30 2003/12/14 00:10:32 neilc Exp $ +$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.31 2004/03/15 14:15:45 momjian Exp $ --> <chapter id="maintenance"> @@ -464,13 +464,19 @@ VACUUM rotation, the <application>logrotate</application> program can be configured to work with log files from <application>syslog</application>. + </para> + <para> + On many systems, however, <application>syslog</> is not very reliable, + particularly with large log messages; it may truncate or drop messages + just when you need them the most. Also, on <productname>linux</>, + <appication>syslog</> will sync each message to disk, yielding poor + performance. Use a <literal>-</> at the start of the file name + in the <application>syslog</> config file to disable this behavior. </para> <para> - On many systems, however, <application>syslog</> is not very reliable, particularly - with large log messages; it may truncate or drop messages just when - you need them the most. You may find it more useful to pipe the + You may find it more useful to pipe the <systemitem>stderr</> of the <command>postmaster</> to some type of log rotation program. If you start the server with <command>pg_ctl</>, then the <systemitem>stderr</> of the <command>postmaster</command> -- GitLab