Re: Deleting the pg logs older than 30 days or certain time

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Nikhil Ingale <niks(dot)bgm(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Deleting the pg logs older than 30 days or certain time
Date: 2023-06-29 07:46:54
Message-ID: CAECtzeVJ4DLZ=+pdGC4eqCktzycshRFzN2Zynm4nh45oC7cdHQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

Le jeu. 29 juin 2023 à 09:13, Nikhil Ingale <niks(dot)bgm(at)gmail(dot)com> a écrit :

> Hi All,
> Can postgresql internal log rotation configuration mechanism delete the
> log files older than a specific period of time?
>
>
No.

> Is there a way to configure this as part of postgresql?
>
>
Nope, you'll have to configure logrotate.

--
Guillaume.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2023-06-29 11:22:01 Re: Deleting the pg logs older than 30 days or certain time
Previous Message Nikhil Ingale 2023-06-29 07:12:27 Deleting the pg logs older than 30 days or certain time