X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B2DF2D1B8AE for ; Sat, 30 Aug 2003 04:58:39 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 01486-02 for ; Sat, 30 Aug 2003 01:58:29 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 1AE41D1B897 for ; Sat, 30 Aug 2003 01:58:28 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h7U4uhO26688; Sat, 30 Aug 2003 00:56:43 -0400 (EDT) From: Bruce Momjian Message-Id: <200308300456.h7U4uhO26688@candle.pha.pa.us> Subject: Re: logfile problem? In-Reply-To: <001001c36d04$9376a970$3bfb47d2@chming> To: "tw_vincent" Date: Sat, 30 Aug 2003 00:56:43 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL106 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/361 X-Sequence-Number: 10081 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