From 7ba6e4f0e08bd7bdf4d12974ac1e37fb0459c97c Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Tue, 9 Nov 2010 22:39:43 -0500 Subject: Add monitoring function pg_last_xact_replay_timestamp. Fujii Masao, with a little wordsmithing by me. --- doc/src/sgml/func.sgml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 183b72cda48..1be9f90fe5e 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -13551,6 +13551,9 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); pg_last_xlog_replay_location + + pg_last_xact_replay_timestamp + The functions shown in + + + pg_last_xact_replay_timestamp() + + timestamp with time zone + Get timestamp of last transaction replayed during recovery. + This is the time at which the commit or abort WAL record for that + transaction was generated. + If no transactions have been replayed during recovery, this function + returns NULL. Otherwise, if recovery is still in progress this will + increase monotonically. If recovery has completed then this value will + remain static at the value of the last transaction applied during that + recovery. When the server has been started normally without recovery + the function returns NULL. + + -- cgit v1.2.3