From 10afaf472a89f46ca0ac570bd88bdf4e40f42bed Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 15 Mar 2004 14:15:45 +0000 Subject: Mention Linux syslog will sync lines to disk, and describe how to disable it. --- doc/src/sgml/maintenance.sgml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'doc/src') 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 @@ @@ -464,13 +464,19 @@ VACUUM rotation, the logrotate program can be configured to work with log files from syslog. + + + On many systems, however, 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 linux, + syslog will sync each message to disk, yielding poor + performance. Use a - at the start of the file name + in the syslog config file to disable this behavior. - On many systems, however, 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 stderr of the postmaster to some type of log rotation program. If you start the server with pg_ctl, then the stderr of the postmaster -- cgit v1.2.3