OSDN Git Service

Send status updates back from standby server to master, indicating how far
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 10 Feb 2011 19:00:29 +0000 (21:00 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 10 Feb 2011 19:04:02 +0000 (21:04 +0200)
commitb186523fd97ce02ffbb7e21d5385a047deeef4f6
tree00e70beaaa8529b291f85b214ee87fc686083cea
parent4c468b37a281941afd3bf61c782b20def8c17047
Send status updates back from standby server to master, indicating how far
the standby has written, flushed, and applied the WAL. At the moment, this
is for informational purposes only, the values are only shown in
pg_stat_replication system view, but in the future they will also be needed
for synchronous replication.

Extracted from Simon riggs' synchronous replication patch by Robert Haas, with
some tweaking by me.
15 files changed:
doc/src/sgml/config.sgml
doc/src/sgml/monitoring.sgml
doc/src/sgml/protocol.sgml
src/backend/access/transam/xlog.c
src/backend/catalog/system_views.sql
src/backend/replication/walreceiver.c
src/backend/replication/walsender.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/access/xlog.h
src/include/catalog/pg_proc.h
src/include/replication/walprotocol.h
src/include/replication/walreceiver.h
src/include/replication/walsender.h
src/test/regress/expected/rules.out