| От | John R Pierce |
|---|---|
| Тема | Re: How to initiate a new log file? |
| Дата | |
| Msg-id | 4A1C8B6E.1070708@hogranch.com обсуждение исходный текст |
| Ответ на | How to initiate a new log file? (ray <Ray.Joseph@CDICorp.com>) |
| Список | pgsql-general |
ray wrote:
> While debugging applications interacting with pg, the log file (under
> pg_log) gets quite long. The log file typically has a name such as
> postgresql-2009-05-26_000000.log; sometimes an new file will be
> generated on the same day and the portion of the name that is all
> zeroes will change to a larger number for each change during that day.
>
> I would like to know what triggers the name change and how can I force
> a change.
>
by default, a new log is created at midnight (hence the _000000) and
when the server is restarted (which would have a timestamp related to
when it was restarted)
you can force a new logfile with...
SELECT |pg_rotate_logfile|();
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера