pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wolfgang Wilhelm <wolfgang20121964@yahoo.de>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
To: Rajesh Kumar <rajeshkumar.dba09@gmail.com>
Subject: Re: Dynamic views
Date: Mon, 8 Apr 2024 10:37:42 +0000 (UTC)
Message-ID: <1131891051.9514344.1712572662608@mail.yahoo.com> (raw)
In-Reply-To: <CAJk5AtaFm_8ZJmEo4h5HX+WCZJpP79rWd_i5EiF_3qkYj38n0g@mail.gmail.com>
References: <CAJk5AtaFm_8ZJmEo4h5HX+WCZJpP79rWd_i5EiF_3qkYj38n0g@mail.gmail.com>

 Hi Rajesh,
pg_stat_activity shows the actual activity - what is running as DB tasks on the system. When the process finishes then it will disappear from that view. No reset needed. pg_stat_database will have new information with new or deleted databases. So no reset required, too.
More information can be taken from the docs. See https://www.postgresql.org/docs/current/monitoring-stats.html
RegardsWolfgang


    Am Montag, 8. April 2024 um 09:01:12 MESZ hat Rajesh Kumar <rajeshkumar.dba09@gmail.com> Folgendes geschrieben:  
 
 Hi all,
How much time the stats are hold in dynamic stats views such as pg_stat_activity, pg_stat_database etc?

Is there a reset point? How to find the last reset time ?  

view thread (4+ messages)  latest in thread

Message-ID: <1131891051.9514344.1712572662608@mail.yahoo.com>
Permalink:  ../1131891051.9514344.1712572662608@mail.yahoo.com/
Also on:    postgresql.org/message-id/1131891051.9514344.1712572662608@mail.yahoo.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-admin@postgresql.org
  Cc: wolfgang20121964@yahoo.de, pgsql-admin@lists.postgresql.org, rajeshkumar.dba09@gmail.com
  Subject: Re: Dynamic views
  In-Reply-To: <1131891051.9514344.1712572662608@mail.yahoo.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