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

From Tom Lane
Subject Re: Deleting the pg logs older than 30 days or certain time
Date
Msg-id 1424081.1688037721@sss.pgh.pa.us
Whole thread Raw
In response to Re: Deleting the pg logs older than 30 days or certain time  (Guillaume Lelarge <guillaume@lelarge.info>)
Responses Re: Deleting the pg logs older than 30 days or certain time
List pgsql-admin
Guillaume Lelarge <guillaume@lelarge.info> writes:
> Le jeu. 29 juin 2023 à 09:13, Nikhil Ingale <niks.bgm@gmail.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



pgsql-admin by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: Deleting the pg logs older than 30 days or certain time
Next
From: MichaelDBA
Date:
Subject: Re: Deleting the pg logs older than 30 days or certain time