Re: log_filename_prefix --> log_filename + strftime() - Mailing list pgsql-patches

From Tom Lane
Subject Re: log_filename_prefix --> log_filename + strftime()
Date
Msg-id 6951.1093802786@sss.pgh.pa.us
Whole thread Raw
In response to Re: log_filename_prefix --> log_filename + strftime()  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: log_filename_prefix --> log_filename + strftime()
List pgsql-patches
Andreas Pflug <pgadmin@pse-consulting.de> writes:
> Jan Wieck wrote:
>>   but allows to setup a
>> configuration that automatically overwrites files in a rotating manner,
>> if the DBA so desires.

> ... which can't work because it will overwrite the logfile on server
> start, and thus will overwrite the very latest logfile when performing
> multiple restarts.

You are ignoring a critical part of the proposal, which is to overwrite
only during a time-based rotation; at logger startup or size-based
rotation, the rule would be to append.

            regards, tom lane

pgsql-patches by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: log_filename_prefix --> log_filename + strftime()
Next
From: Jan Wieck
Date:
Subject: Re: log_filename_prefix --> log_filename + strftime()