Add pg_stat_get_snapshot_timestamp() to show statistics snapshot timestamp.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2fb7a75f37d0beca80f45e15736ec8d50064228a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-02-20T02:36:50Z
Releases: 9.5.0
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

Files