Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7juG-00008H-Te for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2013 09:54:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U7juG-0000Z5-C3 for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2013 09:54:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7juF-0000YU-9x for pgsql-bugs@postgresql.org; Tue, 19 Feb 2013 09:54:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7juD-0000WL-5b for pgsql-bugs@postgresql.org; Tue, 19 Feb 2013 09:54:34 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r1J9sUis022798; Tue, 19 Feb 2013 04:54:30 -0500 (EST) From: Tom Lane To: sari.thiele@usit.uio.no cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on In-reply-to: References: Comments: In-reply-to sari.thiele@usit.uio.no message dated "Mon, 18 Feb 2013 12:11:41 +0000" Date: Tue, 19 Feb 2013 04:54:30 -0500 Message-ID: <22797.1361267670@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org sari.thiele@usit.uio.no writes: > ==> * this checks if the new file name is different from the old one. > In my case it is still the same name and so the new log lines will be > appended to the current file, not truncated like I expected. > I think this is the wrong behaviour, what do you think? No, that behavior is intentional. Otherwise you'd lose log data earlier than the configuration specifies. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs