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

Поиск
Список
Период
Сортировка
От MichaelDBA
Тема Re: Deleting the pg logs older than 30 days or certain time
Дата
Msg-id 017a8f0f-2a35-297e-764e-5f77a1af4ff3@sqlexec.com
обсуждение исходный текст
Ответ на Re: Deleting the pg logs older than 30 days or certain time  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
example: log_filename = 'postgresql-%a.log'


Tom Lane wrote on 6/29/2023 7:22 AM:
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




Regards,

Michael Vitale

Michaeldba@sqlexec.com

703-600-9343 


Вложения

В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Deleting the pg logs older than 30 days or certain time
Следующее
От: "Wetmore, Matthew (CTR)"
Дата:
Сообщение: Deleting the pg logs older than 30 days or certain time