From: Michel SALAIS <msalais@msym.fr>
To: 'still Learner' <stilllearner23@gmail.com>
Cc: 'pgsql-admin' <pgsql-admin@postgresql.org>
Subject: RE: STDERR not logging after a fix log size
Date: Sat, 19 Jun 2021 22:29:33 +0200
Message-ID: <011401d76549$d11dfb60$7359f220$@msym.fr> (raw)
In-Reply-To: <CAB3gP9J=2+NVTdwf2aGkSKzGXTfVJ6i7GdRsRcC1tSheq9qa2A@mail.gmail.com>
References: <CAB3gP9+RQ3EdBCnW6JCmGL6vh+SnkD0kQwuD8pvLTE7ogEpZfw@mail.gmail.com>
<00bd01d76435$2bf52790$83df76b0$@msym.fr>
<CAB3gP9J=2+NVTdwf2aGkSKzGXTfVJ6i7GdRsRcC1tSheq9qa2A@mail.gmail.com>
Hello,
I don’t see a problem in your configuration. But your parameter log_rotation_age (1440 min = 1 day) will lead to a log rotation based on time and it is every day in your case. It will rotate on size only if you have more than 700MB of log per day.
Michel SALAIS
De : still Learner <stilllearner23@gmail.com>
Envoyé : vendredi 18 juin 2021 14:19
À : Michel SALAIS <msalais@msym.fr>
Cc : pgsql-admin <pgsql-admin@postgresql.org>
Objet : Re: STDERR not logging after a fix log size
@Michael Vitale, Yes I have done the reload.
@Michel SALAIS, Please find the result of the query.
name | setting | unit
-----------------------------+-------------------------------------+------
log_autovacuum_min_duration | 1000 | ms
log_checkpoints | on |
log_connections | on |
log_destination | stderr |
log_directory | log |
log_disconnections | off |
log_duration | off |
log_error_verbosity | default |
log_executor_stats | off |
log_file_mode | 0600 |
log_filename | postgresql-%Y-%m-%d_%H%M%S.log |
log_hostname | off |
log_line_prefix | %t [%p]: [%h] [%l-1] user=%u,db=%d |
log_lock_waits | on |
log_min_duration_statement | 2000 | ms
log_min_error_statement | error |
log_min_messages | warning |
log_parser_stats | off |
log_planner_stats | off |
log_replication_commands | off |
log_rotation_age | 1440 | min
log_rotation_size | 716800 | kB
log_statement | none |
log_statement_stats | off |
log_temp_files | -1 | kB
log_timezone | Asia/Kolkata |
log_truncate_on_rotation | off |
logging_collector | on |
(28 rows)
On Fri, Jun 18, 2021 at 4:59 PM Michel SALAIS <msalais@msym.fr <mailto:msalais@msym.fr> > wrote:
Hi,
What is the result of the following query?
Select name, setting, unit
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-admin@postgresql.org
Cc: msalais@msym.fr, stilllearner23@gmail.com
Subject: RE: STDERR not logging after a fix log size
In-Reply-To: <011401d76549$d11dfb60$7359f220$@msym.fr>
* 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