Re: Log rotation - Mailing list pgsql-hackers

From Fernando Nasser
Subject Re: Log rotation
Date
Msg-id 40561A5E.9070701@redhat.com
Whole thread Raw
In response to Re: Log rotation  (Bruce Momjian <pgman@candle.pha.pa.us>)
List 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."



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: listening addresses
Next
From: Greg Stark
Date:
Subject: Re: WAL write of full pages