Re: Log Rotation

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: SOzcn <selahattinozcnma(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Log Rotation
Date: 2023-12-12 22:48:33
Message-ID: 1f8c46da652b1d24e4d38d73682318e1d8d07f51.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, 2023-12-12 at 19:25 +0300, SOzcn wrote:
> On the top you can see the parameters, I already set the parameters as
> you said. But the truncate didn't work for daily.

Again: PostgreSQL will only truncate a file if, during log rotation,
it starts writing to a file that already exists.
It does not take care about old, closed log files.

Yours,
Laurenz Albe

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message sagar jadhav 2023-12-13 02:13:05 Re: Log Rotation
Previous Message SOzcn 2023-12-12 16:52:16 Re: Log Rotation