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

From Wetmore, Matthew (CTR)
Subject Deleting the pg logs older than 30 days or certain time
Date
Msg-id 425e0d73152e4c0692293d144a299305@express-scripts.com
Whole thread Raw
In response to Deleting the pg logs older than 30 days or certain time  (Nikhil Ingale <niks.bgm@gmail.com>)
List pgsql-admin

I feel you have more control with a simple bash (or script of choice) one liner and cron.  I don’t like automated deletes of anything unless I’m in control.  $0.02

 

 

 

From: Nikhil Ingale <niks.bgm@gmail.com>
Sent: Thursday, June 29, 2023 12:12 AM
To: pgsql-admin@lists.postgresql.org
Subject: [EXTERNAL] Deleting the pg logs older than 30 days or certain time

 

Hi All,

Can postgresql internal log rotation configuration mechanism delete the log files older than a specific period of time?

 

Is there a way to configure this as part of postgresql?

 

Regards,
Nikhil Ingale

pgsql-admin by date:

Previous
From: MichaelDBA
Date:
Subject: Re: Deleting the pg logs older than 30 days or certain time
Next
From: Wells Oliver
Date:
Subject: Annoying RDS recovery message in logs on client connect?