Re: [PATCH] Fixed creation of empty .log files during log rotation

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [PATCH] Fixed creation of empty .log files during log rotation
Дата
Msg-id aSQ4JyhfQ4u8EsnS@paquier.xyz
обсуждение исходный текст
Ответ на Re: [PATCH] Fixed creation of empty .log files during log rotation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, Nov 18, 2025 at 06:31:19PM -0500, Tom Lane wrote:
> So the argument that these .log files won't contain any useful
> data is false.
>
> A conceivable improvement is to make the logger unlink a log file if
> it's still empty after we stop using it.  Even that would need a
> switch IMO, since it might break somebody's log-archiving script.
> But I'm doubtful that it's worth the trouble.

FWIW, after reading again the thread and the arguments in place, I am
still not convinced that there is something to do here.
--
Michael

Вложения

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