From: Wetmore, Matthew (CTR) <Matthew.Wetmore@express-scripts.com>
To: Nikhil Ingale <niks.bgm@gmail.com>
To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Deleting the pg logs older than 30 days or certain time
Date: Thu, 29 Jun 2023 17:45:07 +0000
Message-ID: <425e0d73152e4c0692293d144a299305@express-scripts.com> (raw)
In-Reply-To: <CALXkTpyeFNKOzWo3GSj=pAD4FitVnOcbk9s8dn_Zv_Dyu2KU3A@mail.gmail.com>
References: <CALXkTpyeFNKOzWo3GSj=pAD4FitVnOcbk9s8dn_Zv_Dyu2KU3A@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: Matthew.Wetmore@express-scripts.com, niks.bgm@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Deleting the pg logs older than 30 days or certain time
In-Reply-To: <425e0d73152e4c0692293d144a299305@express-scripts.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox