Re: Deleting the pg logs older than 30 days or certain time - Mailing list pgsql-admin

From Guillaume Lelarge
Subject Re: Deleting the pg logs older than 30 days or certain time
Date
Msg-id CAECtzeVJ4DLZ=+pdGC4eqCktzycshRFzN2Zynm4nh45oC7cdHQ@mail.gmail.com
Whole thread Raw
In response to Deleting the pg logs older than 30 days or certain time  (Nikhil Ingale <niks.bgm@gmail.com>)
Responses Re: Deleting the pg logs older than 30 days or certain time
List pgsql-admin
Hi,

Le jeu. 29 juin 2023 à 09:13, Nikhil Ingale <niks.bgm@gmail.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.

pgsql-admin by date:

Previous
From: Nikhil Ingale
Date:
Subject: Deleting the pg logs older than 30 days or certain time
Next
From: Tom Lane
Date:
Subject: Re: Deleting the pg logs older than 30 days or certain time