]> granicus.if.org Git - postgresql/commit
Hot Standby feedback for avoidance of cleanup conflicts on standby.
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 16 Feb 2011 19:29:37 +0000 (19:29 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 16 Feb 2011 19:29:37 +0000 (19:29 +0000)
commitbca8b7f16a3e720794cb0afbdb3733be4f8d9c2c
tree4d2e650f058ffa99af77f9068bf64a223de17246
parent65076269ea54a8cd6e39f066a208c7d13aceac0a
Hot Standby feedback for avoidance of cleanup conflicts on standby.
Standby optionally sends back information about oldestXmin of queries
which is then checked and applied to the WALSender's proc->xmin.
GetOldestXmin() is modified slightly to agree with GetSnapshotData(),
so that all backends on primary include WALSender within their snapshots.
Note this does nothing to change the snapshot xmin on either master or
standby. Feedback piggybacks on the standby reply message.
vacuum_defer_cleanup_age is no longer used on standby, though parameter
still exists on primary, since some use cases still exist.

Simon Riggs, review comments from Fujii Masao, Heikki Linnakangas, Robert Haas
doc/src/sgml/config.sgml
doc/src/sgml/high-availability.sgml
src/backend/access/transam/xlog.c
src/backend/replication/walreceiver.c
src/backend/replication/walsender.c
src/backend/storage/ipc/procarray.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/access/xlog.h
src/include/replication/walprotocol.h
src/include/replication/walreceiver.h