X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9F88553399 for ; Mon, 18 Apr 2005 18:05:56 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 88794-01 for ; Mon, 18 Apr 2005 21:05:54 +0000 (GMT) Received: from mail.deg.cc (mail.deg.cc [64.139.134.201]) by svr1.postgresql.org (Postfix) with ESMTP id 434D553358 for ; Mon, 18 Apr 2005 18:05:53 -0300 (ADT) Received: from deg.cc (unknown [205.242.255.66]) by mail.deg.cc (Postfix) with ESMTP id B78EC56112; Mon, 18 Apr 2005 17:05:49 -0400 (EDT) Message-ID: <42642131.60603@deg.cc> Date: Mon, 18 Apr 2005 17:05:53 -0400 From: Pallav Kalva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040308 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: pgsql-admin Subject: Re: Postgres Log rotation not working in 8.0.2 References: <4264097D.7090808@deg.cc> <25685.1113857543@sss.pgh.pa.us> In-Reply-To: <25685.1113857543@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200504/242 X-Sequence-Number: 17255 Hi Tom, Postmaster is using these settings, SHOW tells me all the settings are right as per the postgresql.conf settings. I am checking the log rotation after restarting the postmaster, Postgres was restarted last monday morning and it generated a new log file postgresql-15.log since then and up until now it is still writing to the same file , its been over a week and 6 hours now. Pallav. Tom Lane wrote: >Pallav Kalva writes: > > >> Postgres log rotation doesnt seem to behave properly, below are >>the settings which I used for log rotation. I want the postgres log to >>be rotated every week , its past over a week now and it still writing to >>the old log. >> >> > >Well, that rotation setting should rotate every 7 days all right. Are >you sure the postmaster is really using these settings? (Check with SHOW.) >In particular, I wonder whether you remembered that changing >redirect_stderr requires an actual postmaster restart, not just SIGHUP. > > regards, tom lane > > >