Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on
Дата
Msg-id 22797.1361267670@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on  (sari.thiele@usit.uio.no)
Ответы Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on  (Rafael Martinez <r.m.guerrero@usit.uio.no>)
Список pgsql-bugs
sari.thiele@usit.uio.no writes:
> ==> * this checks if the new file name is different from the old one.
> In my case it is still the same name and so the new log lines will be
> appended to the current file, not truncated like I expected.
> I think this is the wrong behaviour, what do you think?

No, that behavior is intentional.  Otherwise you'd lose log data
earlier than the configuration specifies.

            regards, tom lane

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

Предыдущее
От: Peter Kroon
Дата:
Сообщение: Re: Nested xmlagg doesn't give a result 9.2.3
Следующее
От: Rafael Martinez
Дата:
Сообщение: Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on