Re: [PATCH] Fixed creation of empty .log files during log rotation - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [PATCH] Fixed creation of empty .log files during log rotation
Date
Msg-id aSQ4JyhfQ4u8EsnS@paquier.xyz
Whole thread Raw
In response to Re: [PATCH] Fixed creation of empty .log files during log rotation  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Viktor Holmberg
Date:
Subject: Re: ON CONFLICT DO SELECT (take 3)
Next
From: Michael Banck
Date:
Subject: Re: [PATCH] Expose checkpoint timestamp and duration in pg_stat_checkpointer