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:
postgres
2010-07-30 11:39:29 -05:00
parent a12e719259
commit 9f61ea6c5c

View File

@@ -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);
}
}