Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on |
| Дата | |
| Msg-id | 23409.1361269278@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on (Rafael Martinez <r.m.guerrero@usit.uio.no>) |
| Ответы |
Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with
parameter log_truncate_on_rotation = on
|
| Список | pgsql-bugs |
Rafael Martinez <r.m.guerrero@usit.uio.no> writes:
> If the behavior we are talking about is intentional, why do be have
> pg_rotate_logfile() if we can not manually override with this function
> log_rotation_age and log_rotation_size?
It works fine as long as the filename pattern is such that a new file
would be selected.
If we didn't have this filter, then a rotation operation would wipe out
*current* log entries, even those that were made a millisecond ago.
That can't possibly be a good idea. Any rotation scheme ought to
provide for recent entries to survive at least until you've rotated
through whichever other log files you have.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера