Re: log_filename_prefix --> log_filename + strftime()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: log_filename_prefix --> log_filename + strftime()
Дата
Msg-id 6951.1093802786@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: log_filename_prefix --> log_filename + strftime()  (Andreas Pflug <pgadmin@pse-consulting.de>)
Ответы Re: log_filename_prefix --> log_filename + strftime()  (Jan Wieck <JanWieck@Yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: log_filename_prefix --> log_filename + strftime()
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: log_filename_prefix --> log_filename + strftime()