Re: how to clear server log

Поиск
Список
Период
Сортировка
От Ben Chobot
Тема Re: how to clear server log
Дата
Msg-id BC68371E-DBF6-477F-9109-1962A9A7228E@silentmedia.com
обсуждение исходный текст
Ответ на how to clear server log  (Amy Smith <vah123@gmail.com>)
Список pgsql-general
On Feb 23, 2010, at 11:49 AM, Amy Smith wrote:

> All
>
> do you clean up the server file by removing them
> use
>
> find $logfile -mtime +$NUMBER_DAYS_TO_KEEP  -type f -print -exec rm -f {} \;
>
> in postgres ?
>
> How to remove the archive log files in postgres ? is the same way as remove backup files and server log files ?

Usually log rotator logic will overwrite old logs with new ones, and you don't have this problem. Why is that not
workingfor you? 


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

Предыдущее
От: Amy Smith
Дата:
Сообщение: how to clear server log
Следующее
От: Reid Thompson
Дата:
Сообщение: Re: