Re: how to clear server log - Mailing list pgsql-general

From Ben Chobot
Subject Re: how to clear server log
Date
Msg-id BC68371E-DBF6-477F-9109-1962A9A7228E@silentmedia.com
Whole thread Raw
In response to how to clear server log  (Amy Smith <vah123@gmail.com>)
List 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 by date:

Previous
From: Amy Smith
Date:
Subject: how to clear server log
Next
From: Reid Thompson
Date:
Subject: Re: