The unit of replication apply delay and transfer latency should be inlog message.

GetReplicationApplyDelay() and GetReplicationTransferLatency() are calledwhenever the standby receives the message from the master. Which mightdegrade the performance of replication a bit. So we should skip the above elogwhen log_message >= DEBUG2?