Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3513F477049 for ; Mon, 13 Jan 2003 16:33:39 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id B14EA477041 for ; Mon, 13 Jan 2003 16:33:38 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 9679443AF33; Mon, 13 Jan 2003 16:33:38 -0500 (EST) From: "codeWarrior" X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Database logging.... Recycle server logs ??? Date: Mon, 13 Jan 2003 13:40:10 -0800 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 26 Message-ID: References: <4864.1042488639@sss.pgh.pa.us> Reply-To: "codeWarrior" X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/212 X-Sequence-Number: 7054 "Tom Lane" wrote in message news:4864.1042488639@sss.pgh.pa.us... > "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-maintena nce.html > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org Thanks Tom -- Of course -- I located that section of the manual immediately after my post... I will use logrotate....