From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | "tw_vincent" <tw_vincent(at)yahoo(dot)com(dot)tw> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: logfile problem? |
Date: | 2003-08-30 04:56:43 |
Message-ID: | 200308300456.h7U4uhO26688@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Pierre Couderc | 2003-08-30 06:11:10 | Re: How to read a sequence without incrementing it? |
Previous Message | alexander v p | 2003-08-30 02:34:24 | Re: eRserver |