Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why? - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why?
Date
Msg-id 38725031-5e80-46ee-b403-a92107b24c39@aklaver.com
Whole thread Raw
In response to Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why?  (Steeve Boulanger <sboulanger29@gmail.com>)
Responses Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why?
List pgsql-general
On 11/21/24 12:34, Steeve Boulanger wrote:

Please reply to list also.

Ccing list.


> Thanks Adrian for taking the time to respond. I will review the 
> documentation once more, just in case I missed anything.
> 
> My apologies - I forgot to mention in my original post, that our last 
> cluster shutdown was over 15 days ago, thus an "unclean" 
> shutdown would not explain these daily stats reset that we are seeing. 
> It might also be relevant to mentioned

Then something is resetting the statistics.

1) What is log_min_error_statement set to?

2) Did you reload the server when changing?:

log_min_duration_statement | 0
log_statement              | all

> 
> -Steeve
> 
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com




pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why?
Next
From: Steeve Boulanger
Date:
Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why?