pgsql: Send new protocol keepalive messages to standby servers.

Simon Riggs <simon@2ndquadrant.com>

From: Simon Riggs <simon@2ndQuadrant.com>
To: pgsql-committers@postgresql.org
Date: 2011-12-31T13:34:03Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Send new protocol keepalive messages to standby servers.

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/64233902d22ba42846397cb7551894217522fad4

Modified Files
--------------
doc/src/sgml/protocol.sgml                 |   48 +++++++++++++++++++++
src/backend/access/transam/xlog.c          |   43 +++++++++++++++++++
src/backend/replication/walreceiver.c      |   47 ++++++++++++++++++++-
src/backend/replication/walreceiverfuncs.c |   63 ++++++++++++++++++++++++++++
src/backend/replication/walsender.c        |   42 ++++++++++++-------
src/include/access/xlog.h                  |    1 +
src/include/replication/walprotocol.h      |   22 ++++++++++
src/include/replication/walreceiver.h      |    8 ++++
8 files changed, 258 insertions(+), 16 deletions(-)