Re: Log rotation - Mailing list pgsql-hackers

From Fernando Nasser
Subject Re: Log rotation
Date
Msg-id 4055D767.4020300@redhat.com
Whole thread Raw
In response to Re: Log rotation  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Log rotation  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:
> Manfred Spraul wrote:
> 
>>Bruce Momjian wrote:
>>
>>
>>>Which basically shows one fsync, no O_SYNC's, and setting of the flag
>>>only for klog reads.
>>> 
>>>
>>
>>Which sysklogd do you look at? The version from RedHat 9 contains this 
>>block:
> 
> 
> I looked on NetBSD, FreeBSD, and BSD/OS.
> 

Bruce, I've asked around in Red Hat and that was the answer.  I confess 
I did not understand if "upstream" means the Linux community or the 
syslogd source...

Anyway, do you have recent FreeBSD or NetBSD sources?

Regards,
Fernando

---------------------------------------------------------------------------
Fernando Nasser (fnasser@redhat.com) said:
>> It seems that our syslogd fsyncs on each write, while the NetBSD,>> FreeBSD, and BSD/OS ones don't.


Standard upstream behavior, been that way pretty much forever.
As for any reason why, it's probably tradition at this point.

As mentioned, you can configure it away for any log that you
don't want it.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Custom format for pg_dumpall
Next
From: Bruce Momjian
Date:
Subject: Re: Log rotation