Re: how to clear server log

From: Ben Chobot <bench(at)silentmedia(dot)com>
To: Amy Smith <vah123(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to clear server log
Date: 2010-02-23 20:46:44
Message-ID: BC68371E-DBF6-477F-9109-1962A9A7228E@silentmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 working for you?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bryan Montgomery 2010-02-23 21:21:32 Trying to get a C function built with MSVC
Previous Message Richard Huxton 2010-02-23 20:33:35 Re: Minor systax error but not able to resolve it...