From tw_vincent@yahoo.com.tw Thu Aug 28 01:35:42 2003 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 08EF3D1B8B3 for ; Thu, 28 Aug 2003 01:35:42 +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 98832-10 for ; Wed, 27 Aug 2003 22:35:13 -0300 (ADT) Received: from msr76.hinet.net (msr76.hinet.net [168.95.4.176]) by svr1.postgresql.org (Postfix) with ESMTP id 8A42DD1B914 for ; Wed, 27 Aug 2003 22:35:08 -0300 (ADT) Received: from chming ([210.71.251.59]) by msr76.hinet.net (8.9.3/8.9.3) with SMTP id JAA03413 for ; Thu, 28 Aug 2003 09:35:07 +0800 (CST) Message-ID: <001001c36d04$9376a970$3bfb47d2@chming> From: "tw_vincent" To: Subject: logfile problem? Date: Thu, 28 Aug 2003 09:34:49 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000D_01C36D47.A0885260" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.8 tagged_above=0.0 required=5.0 tests=HTML_40_50, RCVD_IN_RFCI X-Spam-Level: * X-Archive-Number: 200308/318 X-Sequence-Number: 10039 This is a multi-part message in MIME format. ------=_NextPart_000_000D_01C36D47.A0885260 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable 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 cl= ear logfile. How can I clear the logfile, thank you! vincent ------=_NextPart_000_000D_01C36D47.A0885260 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Dear All:
 
        I start postgresq= l with=20 "/app/pgsql/bin/pg_ctl start -l /app/pgsql/logfile -D=20 /app/pgsql/data",
when I use "cat /dev/null > /app/pgsql/logile" to cl= ear=20 logfile, I can't clear logfile. How can I
clear the logfile, thank you!
 
vincent
------=_NextPart_000_000D_01C36D47.A0885260-- From pgman@candle.pha.pa.us Sat Aug 30 04:58:39 2003 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