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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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?

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


Michael Vitale




[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux