pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: jose.morcillo.valenciano@gmail.com
Subject: BUG #19025: PostgreSQL log is not rotated
Date: Tue, 19 Aug 2025 10:21:28 +0000
Message-ID: <19025-2b475b7d74db87f1@postgresql.org> (raw)

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



view thread (4+ messages)  latest in thread

Message-ID: <19025-2b475b7d74db87f1@postgresql.org>
Permalink:  ../19025-2b475b7d74db87f1@postgresql.org/
Also on:    postgresql.org/message-id/19025-2b475b7d74db87f1@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, jose.morcillo.valenciano@gmail.com
  Subject: Re: BUG #19025: PostgreSQL log is not rotated
  In-Reply-To: <19025-2b475b7d74db87f1@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox