pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Dynamic views
4+ messages / 3 participants
[nested] [flat]

* Dynamic views
@ 2024-04-08 07:00  Rajesh Kumar <rajeshkumar.dba09@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Rajesh Kumar @ 2024-04-08 07:00 UTC (permalink / raw)
  To: Pgsql-admin <pgsql-admin@lists.postgresql.org>

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 ?

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Dynamic views
@ 2024-04-08 10:37  Wolfgang Wilhelm <wolfgang20121964@yahoo.de>
  parent: Rajesh Kumar <rajeshkumar.dba09@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Wolfgang Wilhelm @ 2024-04-08 10:37 UTC (permalink / raw)
  To: Pgsql-admin <pgsql-admin@lists.postgresql.org>; Rajesh Kumar <rajeshkumar.dba09@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 ?  

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Dynamic views
@ 2024-04-08 11:57  Holger Jakobs <holger@jakobs.com>
  parent: Wolfgang Wilhelm <wolfgang20121964@yahoo.de>
  0 siblings, 1 reply; 4+ messages in thread

From: Holger Jakobs @ 2024-04-08 11:57 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org


Am 08.04.24 um 12:37 schrieb Wolfgang Wilhelm:
> 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 ?


pg_stat_activity shows the CURRENT activity ...

Deutsch: "aktuell"  is NOT the same as "actual" in English! Using 
"actual" instead of "current" may confuse other people.


-- 

Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Dynamic views
@ 2024-04-09 09:18  Wolfgang Wilhelm <wolfgang20121964@yahoo.de>
  parent: Holger Jakobs <holger@jakobs.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Wolfgang Wilhelm @ 2024-04-09 09:18 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>; Holger Jakobs <holger@jakobs.com>

 Hi Holger,
thank you for the correction.
Kind regardsWolfgang

    Am Montag, 8. April 2024 um 13:57:51 MESZ hat Holger Jakobs <holger@jakobs.com> Folgendes geschrieben:  
 
  

 
 Am 08.04.24 um 12:37 schrieb Wolfgang Wilhelm:
  
 
 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 ?      

 
 
pg_stat_activity shows the CURRENT activity ...
 
Deutsch: "aktuell"  is NOT the same as "actual" in English! Using "actual" instead of "current" may confuse other people.
 

 
 -- 
 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
 
 
    

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2024-04-09 09:18 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-04-08 07:00 Dynamic views Rajesh Kumar <rajeshkumar.dba09@gmail.com>
2024-04-08 10:37 ` Wolfgang Wilhelm <wolfgang20121964@yahoo.de>
2024-04-08 11:57   ` Holger Jakobs <holger@jakobs.com>
2024-04-09 09:18     ` Wolfgang Wilhelm <wolfgang20121964@yahoo.de>

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