Re: 8.4.12 log truncation not working?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pg noob <pgnube(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: 8.4.12 log truncation not working?
Date: 2012-07-30 14:27:46
Message-ID: 28534.1343658466@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

pg noob <pgnube(at)gmail(dot)com> writes:
> For some reason the log truncation doesn't seem to be working on my server.
> I have set log_rotation_age to 1 day and log_truncate_on_rotation to on.
> ...
> I don't have any periodic scheduled Postgres restarts but the server does
> get restarted frequently.

There is a known issue that the server will append rather than
truncating at the first rotation opportunity after a restart.
So if "frequently" means "more than once a day", that would explain
your results. This was complained of recently:
http://archives.postgresql.org/pgsql-bugs/2012-07/msg00116.php
but nobody's done anything about it yet.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message James David Smith 2012-07-30 16:11:59 LOOP Functions - where to start?
Previous Message pg noob 2012-07-30 13:48:38 8.4.12 log truncation not working?