mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 15:16:29 +00:00
In 9.0beta3 the function GetLatestXLogTime() was removed
and replaced by GetLatestXTime() but this function cannot be called from external programs. Instead now we are using GetXLogReceiptTime() which tells us what was the last time we got a WAL record by streaming or file.
This commit is contained in:
@@ -20,10 +20,16 @@ PG_FUNCTION_INFO_V1(last_xlog_replay_timestamp);
|
||||
Datum
|
||||
last_xlog_replay_timestamp(PG_FUNCTION_ARGS)
|
||||
{
|
||||
TimestampTz rTime;
|
||||
bool fromSource;
|
||||
|
||||
if (!InRecovery)
|
||||
PG_RETURN_NULL();
|
||||
else
|
||||
PG_RETURN_TIMESTAMPTZ(GetLatestXLogTime());
|
||||
{
|
||||
GetXLogReceiptTime(&rTime, &fromStream);
|
||||
PG_RETURN_TIMESTAMPTZ(rTime);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user