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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deleting the pg logs older than 30 days or certain time
Дата
Msg-id 1424081.1688037721@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Deleting the pg logs older than 30 days or certain time  (Guillaume Lelarge <guillaume@lelarge.info>)
Ответы Re: Deleting the pg logs older than 30 days or certain time  (MichaelDBA <MichaelDBA@sqlexec.com>)
Список 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 по дате отправления:

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: 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