| От | Tom Lane |
|---|---|
| Тема | Re: BUG #1531: rotated log truncation broken |
| Дата | |
| Msg-id | 6290.1110295966@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #1531: rotated log truncation broken ("Markus Bertheau" <twanger@bluetwanger.de>) |
| Список | pgsql-bugs |
"Markus Bertheau" <twanger@bluetwanger.de> writes:
> The log truncation is broken for me. It works as advertised, and I follow
> the argumentation behind it, but for my scenario it is not working:
> I use the computer only in work hours; it's shut down in the night.
> I use the standard log rotation thing that is set up in the RPM distributed
> by the PGDG.
> My logs are not truncated because postgres was not running when the time
> based rotation occurs.
An easy answer is to change the log filename pattern so that rotation
happens hourly instead of daily. The setup created by the RPM is only
a useful default; it's not intended to be the perfect answer for everyone.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера