Re: log_filename_prefix --> log_filename + strftime()

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

> which then has a problem when you startup the postmaster after 10 hours
> of downtime ... hmmm.

Doesn't seem like a big problem --- at worst that logfile will get to be
double the size it normally would.

Note that this scheme effectively disables size-based rotation anyway,
unless you use one of the hacks we talked about like using a %H:%M
pattern when you intend hourly rotation.

            regards, tom lane

В списке pgsql-patches по дате отправления:

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