Thread: pgsql: Add current WAL end (as seen by walsender, ie, GetWriteRecPtr()

pgsql: Add current WAL end (as seen by walsender, ie, GetWriteRecPtr()

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Add current WAL end (as seen by walsender, ie, GetWriteRecPtr() result)
and current server clock time to SR data messages.  These are not currently
used on the slave side but seem likely to be useful in future, and it'd be
better not to change the SR protocol after release.  Per discussion.
Also do some minor code review and cleanup on walsender.c, and improve the
protocol documentation.

Modified Files:
--------------
    pgsql/doc/src/sgml:
        protocol.sgml (r1.87 -> r1.88)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/protocol.sgml?r1=1.87&r2=1.88)
    pgsql/src/backend/replication:
        walreceiver.c (r1.10 -> r1.11)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/replication/walreceiver.c?r1=1.10&r2=1.11)
        walsender.c (r1.24 -> r1.25)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/replication/walsender.c?r1=1.24&r2=1.25)
    pgsql/src/include/replication:
        walreceiver.h (r1.8 -> r1.9)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/replication/walreceiver.h?r1=1.8&r2=1.9)

Added Files:
-----------
    pgsql/src/include/replication:
        walprotocol.h (r1.1)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/replication/walprotocol.h?rev=1.1&content-type=text/x-cvsweb-markup)