pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Sujith Kumar.S <sujiplr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Database Stats getting reset after server restart
Date: Mon, 17 Aug 2020 10:38:08 +0200
Message-ID: <7692b845b77aaf4ebeb85bde6b781e356925dd21.camel@cybertec.at> (raw)
In-Reply-To: <CACqrAMCHVC=SxEK3+L4m8ZyUkn4KFUs9X0wS=4vszhSvRb9orQ@mail.gmail.com>
References: <CACqrAMCHVC=SxEK3+L4m8ZyUkn4KFUs9X0wS=4vszhSvRb9orQ@mail.gmail.com>

On Mon, 2020-08-17 at 03:25 -0500, Sujith Kumar.S wrote:
> After the postgresql server restart, the details on the pg_stat_all_tables are showing as zero.

That would indicate that you didn't shut down PostgreSQL cleanly.

https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-STATS-SETUP
> When recovery is performed at server start (e.g. after immediate shutdown, server crash,
> and point-in-time recovery), all statistics counters are reset.

Consult the PostgreSQL log file for confirmation.

Yours,
Laurenz Albe






view thread (4+ messages)  latest in thread

Message-ID: <7692b845b77aaf4ebeb85bde6b781e356925dd21.camel@cybertec.at>
Permalink:  ../7692b845b77aaf4ebeb85bde6b781e356925dd21.camel@cybertec.at/
Also on:    postgresql.org/message-id/7692b845b77aaf4ebeb85bde6b781e356925dd21.camel@cybertec.at

 · 

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-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, sujiplr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Database Stats getting reset after server restart
  In-Reply-To: <7692b845b77aaf4ebeb85bde6b781e356925dd21.camel@cybertec.at>

* 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