Re: rotating log files

Поиск
Список
Период
Сортировка
От Warren Vanichuk
Тема Re: rotating log files
Дата
Msg-id Pine.LNX.4.21.0104270848110.8036-100000@urd.street-light.com
обсуждение исходный текст
Ответ на rotating log files  (Jelle Ouwerkerk <jelle@openface.ca>)
Список pgsql-general
> # start
>
> /var/log/postgresql.log {
>            compress
>            rotate 10
>            create 0664 postgres postgres
>            size=10000k
>            weekly
>            sharedscripts
>            postrotate
>              /etc/rc.d/init.d/postgresql restart
>            endscript
> }

Alternatively, instead of restarting postgres, the "copytruncate" option can
be used to truncate the log file in place, allowing postgres to continue
writting to the file without needing to restart.

Sincerely, Warren


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

Предыдущее
От: Joseph Koenig
Дата:
Сообщение: General usage for pg_dumpall
Следующее
От: Michelle Murrain
Дата:
Сообщение: pg_encoding