example: log_filename = 'postgresql-%a.log' Tom Lane wrote on 6/29/2023 7:22 AM: Guillaume Lelarge <guillaume@xxxxxxxxxxxx> writes:Le jeu. 29 juin 2023 à 09:13, Nikhil Ingale <niks.bgm@xxxxxxxxx> 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 |