Re: Dynamic views - Mailing list pgsql-admin

From Wolfgang Wilhelm
Subject Re: Dynamic views
Date
Msg-id 1131891051.9514344.1712572662608@mail.yahoo.com
Whole thread Raw
In response to [MASSMAIL]Dynamic views  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
Responses Re: Dynamic views
List pgsql-admin
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

Regards
Wolfgang


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 ?

pgsql-admin by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: How to tune SQL performance of function based columns of a view
Next
From: sethu mathavan
Date:
Subject: [MASSMAIL]Access Denied in mysql