pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: jose.morcillo.valenciano@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19025: PostgreSQL log is not rotated
Date: Wed, 20 Aug 2025 13:19:25 +0200
Message-ID: <aKWvPeFfTMP-4d7Z@depesz.com> (raw)
In-Reply-To: <19025-2b475b7d74db87f1@postgresql.org>
References: <19025-2b475b7d74db87f1@postgresql.org>

On Tue, Aug 19, 2025 at 10:21:28AM +0000, PG Bug reporting form wrote:
> 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:

Please connect to the db, and check what are values of these settings
*inside* db.

You can do it by doing:

SELECT
    name,
    setting,
    source,
    sourcefile,
    sourceline
FROM
    pg_settings
WHERE
    name IN = ANY ('{logging_collector,log_destination,log_directory,log_filename,log_rotation_age,log_rotation_size,log_truncate_on_rotation}'::text[]);

Best regards,

depesz






view thread (4+ messages)

Message-ID: <aKWvPeFfTMP-4d7Z@depesz.com>
Permalink:  ../aKWvPeFfTMP-4d7Z@depesz.com/
Also on:    postgresql.org/message-id/aKWvPeFfTMP-4d7Z@depesz.com

 · 

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: depesz@depesz.com, jose.morcillo.valenciano@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #19025: PostgreSQL log is not rotated
  In-Reply-To: <aKWvPeFfTMP-4d7Z@depesz.com>

* 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