Deleting the pg logs older than 30 days or certain time

From: "Wetmore, Matthew (CTR)" <Matthew(dot)Wetmore(at)express-scripts(dot)com>
To: Nikhil Ingale <niks(dot)bgm(at)gmail(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Deleting the pg logs older than 30 days or certain time
Date: 2023-06-29 17:45:07
Message-ID: 425e0d73152e4c0692293d144a299305@express-scripts.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)bgm(at)gmail(dot)com>
Sent: Thursday, June 29, 2023 12:12 AM
To: pgsql-admin(at)lists(dot)postgresql(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Wells Oliver 2023-06-30 17:04:34 Annoying RDS recovery message in logs on client connect?
Previous Message MichaelDBA 2023-06-29 13:16:44 Re: Deleting the pg logs older than 30 days or certain time