On Sat, Dec 31, 2011 at 10:34 PM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
> Send new protocol keepalive messages to standby servers.
> Allows streaming replication users to calculate transfer latency
> and apply delay via internal functions. No external functions yet.
pq_flush_if_writable() needs to be called just after
keepalive packet is not sent for a while.
+ProcessWalSndrMessage(XLogRecPtr walEnd, TimestampTz sendTime)
walEnd is not used in ProcessWalSndrMessage() at all. Can't we remove it?
If yes, walEnd field in WalSndrMessage is also not used anywhere, so ISTM
we can remove it.
+ elog(DEBUG2, "sendtime %s receipttime %s replication apply delay %d
transfer latency %d",
The unit of replication apply delay and transfer latency should be in
GetReplicationApplyDelay() and GetReplicationTransferLatency() are called
whenever the standby receives the message from the master. Which might
degrade the performance of replication a bit. So we should skip the above elog
when log_message >= DEBUG2?
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
In response to
pgsql-hackers by date
|Next:||From: Greg Smith||Date: 2012-01-11 14:12:30|
|Subject: Re: checkpoint writeback via sync_file_range|
|Previous:||From: Robert Haas||Date: 2012-01-11 14:04:25|
|Subject: Re: JSON for PG 9.2|
pgsql-committers by date
|Next:||From: Simon Riggs||Date: 2012-01-11 15:20:24|
|Subject: Re: [COMMITTERS] pgsql: Send new protocol keepalive messages to
|Previous:||From: Heikki Linnakangas||Date: 2012-01-11 09:28:25|
|Subject: pgsql: Refactor XLogInsert a bit. The rdata entries for backup blocksa|