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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Nikhil Ingale <niks(dot)bgm(at)gmail(dot)com>, 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 11:22:01
Message-ID: 1424081.1688037721@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Guillaume Lelarge <guillaume(at)lelarge(dot)info> writes:
> Le jeu. 29 juin 2023 à 09:13, Nikhil Ingale <niks(dot)bgm(at)gmail(dot)com> a écrit :
>> Can postgresql internal log rotation configuration mechanism delete the
>> log files older than a specific period of time?

> No.

It will work if you choose a filename pattern such that old files are
overwritten on some cycle. logrotate is a more flexible answer
of course.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message MichaelDBA 2023-06-29 13:16:44 Re: Deleting the pg logs older than 30 days or certain time
Previous Message Guillaume Lelarge 2023-06-29 07:46:54 Re: Deleting the pg logs older than 30 days or certain time