public inbox for [email protected]  
help / color / mirror / Atom feed
From: Adrian Klaver <[email protected]>
To: Steeve Boulanger <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why?
Date: Thu, 21 Nov 2024 14:32:06 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAAiSvx_ZtM72ZO=uq56X=iJ=a17KcgB=07c5abyFnQ8vAses0Q@mail.gmail.com>
References: <CAAiSvx8_Z6QGey92dC+6Yona18KDMLWinfR5LOJsMgj-42XJtg@mail.gmail.com>
	<[email protected]>
	<CAAiSvx_vsiCmL3gBj+1hRpMxo=nOc3HUa+VaGO9_GfOXDWCsrQ@mail.gmail.com>
	<[email protected]>
	<CAAiSvx-pwz562KrTPdayK+qqRm9DxbrU1r9_Qkpm5BLh-1G+pA@mail.gmail.com>
	<[email protected]>
	<CAAiSvx_ZtM72ZO=uq56X=iJ=a17KcgB=07c5abyFnQ8vAses0Q@mail.gmail.com>

On 11/21/24 13:31, Steeve Boulanger wrote:
>  > All I can think to do is look at the logs  around the stats_reset times
>  > for the databases and see if there is anything relevant.
> 
> That was already done, but nothing relevant was found unfortunately.

Unless it was not recognized as relevant. Since for the time being I am 
eliminating magic as the cause, something concrete is causing this and 
it should be leaving a trace. In your post you had this affecting 77 out 
of 157 databases in the cluster.

1) Do the 77 share some trait the other 80 don't.

2) Do the OS system logs reveal anything?

3) What was happening in the databases just prior to the time the stats 
reset?

4) Do you have external tools accessing these databases?

5) Is the cluster directly open to the world?

> 
> -Steeve
> 
> On Thu, Nov 21, 2024 at 3:12 PM Adrian Klaver <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     On 11/21/24 12:57, Steeve Boulanger wrote:
>      >
>      >  > Please reply to list also.
>      >
>      > My apologies - I thought I did a "Reply all", but apparently not.
>     I'm a
>      > little bit of a noob with email distrib lists.
>      >
>      >  > 1) What is log_min_error_statement set to?
>      >
>      >            name           | setting | pending_restart
>      > -------------------------+---------+-----------------
>      >   log_min_error_statement | error   | f
>      >
>      >  > 2) Did you reload the server when changing?:
>      >
>      > yes - pg_reload_conf()
> 
>     All I can think to do is look at the logs  around the stats_reset times
>     for the databases and see if there is anything relevant.
> 
>      >
>      > -Steeve
> 
> 
>     -- 
>     Adrian Klaver
>     [email protected] <mailto:[email protected]>
> 

-- 
Adrian Klaver
[email protected]







view thread (15+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why?
  In-Reply-To: <[email protected]>

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

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