BUG #19025: PostgreSQL log is not rotated - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #19025: PostgreSQL log is not rotated
Date
Msg-id 19025-2b475b7d74db87f1@postgresql.org
Whole thread Raw
Responses Re: BUG #19025: PostgreSQL log is not rotated
Re: BUG #19025: PostgreSQL log is not rotated
Re: BUG #19025: PostgreSQL log is not rotated
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      19025
Logged by:          José Antonio Morcillo Valenciano
Email address:      jose.morcillo.valenciano@gmail.com
PostgreSQL version: 16.2
Operating system:   Red Hat Enterpr Linux 5.14.0-427.35.1.el9_4.x86_64
Description:

Hi folks!

We have configured our log rotating policy as follows:

logging_collector = on
log_destination = 'stderr'
log_directory = '/postgresql/16/log/cpdm-cluster86'
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
log_rotation_age = 1d
log_rotation_size = 250MB
log_truncate_on_rotation = on

But the log is 16GB and no rotation has happened:

[PRO] $ ls -lh
total 16G
-rw-r--r-- 1 postgres postgres 16G Aug 19 12:16
postgresql-2025-07-12_001207.log


I have been searching any bug but I could not find it. Any ideas?

Thanks!!!

Regards,
José Antonio


pgsql-bugs by date:

Previous
From: Amit Kapila
Date:
Subject: Re: BUG #18988: DROP SUBSCRIPTION locks not-yet-accessed database
Next
From: Sandeep Thakkar
Date:
Subject: Re: PostgreSQL Windows Installer defaults to "English_United States.1252" when choosing locale starting with "English"