Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on
Date
Msg-id 22797.1361267670@sss.pgh.pa.us
Whole thread Raw
In response to BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on  (sari.thiele@usit.uio.no)
Responses Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Peter Kroon
Date:
Subject: Re: Nested xmlagg doesn't give a result 9.2.3
Next
From: Rafael Martinez
Date:
Subject: Re: BUG #7890: wrong behaviour using pg_rotate_logfile() with parameter log_truncate_on_rotation = on