From 2fb7a75f37d0beca80f45e15736ec8d50064228a Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 19 Feb 2015 21:36:50 -0500 Subject: Add pg_stat_get_snapshot_timestamp() to show statistics snapshot timestamp. Per discussion, this could be useful for purposes such as programmatically detecting a nonresponding stats collector. We already have the timestamp anyway, it's just a matter of providing a SQL-accessible function to fetch it. Matt Kelly, reviewed by Jim Nasby --- doc/src/sgml/monitoring.sgml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 3ce7e80dfa2..9eaf1446a1f 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -1709,6 +1709,14 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser + + pg_stat_get_snapshot_timestamp()pg_stat_get_snapshot_timestamp + timestamp with time zone + + Returns the timestamp of the current statistics snapshot + + + pg_stat_clear_snapshot()pg_stat_clear_snapshot void -- cgit v1.2.3