]> granicus.if.org Git - postgresql/commit
Add pg_stat_get_snapshot_timestamp() to show statistics snapshot timestamp.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Feb 2015 02:36:50 +0000 (21:36 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Feb 2015 02:36:50 +0000 (21:36 -0500)
commit2fb7a75f37d0beca80f45e15736ec8d50064228a
tree75b55578c09991a16f3714b928e3e5d8d717a8fd
parent634618ecd039cf99fb8212b0314ef8a3754ca9c2
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
src/backend/utils/adt/pgstatfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/test/regress/expected/stats.out
src/test/regress/sql/stats.sql