Re: BUG #1531: rotated log truncation broken

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: BUG #1531: rotated log truncation broken
Дата
Msg-id 422D92DC.2020400@archonet.com
обсуждение исходный текст
Ответ на BUG #1531: rotated log truncation broken  ("Markus Bertheau" <twanger@bluetwanger.de>)
Список pgsql-bugs
Markus Bertheau wrote:
> The following bug has been logged online:
>
> Bug reference:      1531
> Logged by:          Markus Bertheau
> Email address:      twanger@bluetwanger.de
> PostgreSQL version: 8.0.1
> Operating system:   Linux FC3
> Description:        rotated log truncation broken
> Details:
>
> 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.

You probably want to look at the "anacron" package - should be installed
by default. Designed for just this sort of thing.

You should find if you log to syslog it's already rotating those files.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: "Markus Bertheau"
Дата:
Сообщение: BUG #1531: rotated log truncation broken
Следующее
От: Robert Treat
Дата:
Сообщение: Re: [pgsql-www] Likely typo in FAQ_DEV.html