Re: logfile problem? - Mailing list pgsql-admin

From Bruce Momjian
Subject Re: logfile problem?
Date
Msg-id 200308300456.h7U4uhO26688@candle.pha.pa.us
Whole thread Raw
In response to logfile problem?  ("tw_vincent" <tw_vincent@yahoo.com.tw>)
List pgsql-admin
tw_vincent wrote:
> Dear All:
>
>    I start postgresql with "/app/pgsql/bin/pg_ctl start -l
>    /app/pgsql/logfile -D /app/pgsql/data", when I use "cat
> /dev/null > /app/pgsql/logile" to clear logfile, I can't clear
> logfile. How can I clear the logfile, thank you!

The problem is that the log file is still being written to by the
postmaster. You can pipe into the rotatelogs script that is part of
Apache, or use syslog.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-admin by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Disk Utilization Increases And Time for Vacuum Increases.
Next
From: alexander v p
Date:
Subject: Re: eRserver