Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 06D05476488 for ; Mon, 13 Jan 2003 15:10:41 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 52691476476 for ; Mon, 13 Jan 2003 15:10:40 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h0DKAd5u004865; Mon, 13 Jan 2003 15:10:39 -0500 (EST) To: "codeWarrior" Cc: pgsql-admin@postgresql.org Subject: Re: Database logging.... Recycle server logs ??? In-reply-to: References: Comments: In-reply-to "codeWarrior" message dated "Mon, 13 Jan 2003 07:44:26 -0800" Date: Mon, 13 Jan 2003 15:10:39 -0500 Message-ID: <4864.1042488639@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/127 X-Sequence-Number: 6969 "codeWarrior" writes: > I noticed that the server generated logfile gets real big real fast -- (15 > queries and it's already at 1.5MB) -- Is there a switch / option to recycle > the server logs periodically ??? The recommended procedure is not to use pg_ctl's -l switch, but to pipe output from it into a log-rotating script. The rotatelogs script from the Apache distribution works well, or you can roll your own. See http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/logfile-maintenance.html regards, tom lane