Re: Log rotation

From: Fernando Nasser <fnasser(at)redhat(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Manfred Spraul <manfred(at)colorfullife(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Lamar Owen <lowen(at)pari(dot)edu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Log rotation
Date: 2004-03-15 21:04:30
Message-ID: 40561A5E.9070701@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian wrote:
> Fernando Nasser wrote:
>>Anyway, do you have recent FreeBSD or NetBSD sources?
>
>
> I just jumped on the web sites of the projects and looked at the CVS
> head for usr.sbin/syslogd/syslogd.c.
>
> NetBSD is here:
>
> http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.sbin/syslogd/
>
> FreeBSD is here:
>
> http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/syslogd/
>

It seems these are different implementations of syslogd from the one that comes
with Red Hat Linux (for instance) that has the '-' parameter and fsync by
default since 2000 and it was not added by Red hat (it was in the original sources).

W.r.t. syslogd Alan Cox said:

"Its configurable in Linux. The advantage of fsync each time is that data
is not lost from the logs on poweroff, the tradeoff is speed of logging,
although since syslog isnt intended for mass data dumping it isnt normally
a problem

The use of "-" for non fsyncing is also recommended for laptops to improve
disk sleep patterns."

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-03-15 21:05:30 Re: listening addresses
Previous Message Tom Lane 2004-03-15 20:54:38 Re: listening addresses