pgsql: Reset hot standby xmin on master after restart

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reset hot standby xmin on master after restart
Date: 2017-01-26 18:18:17
Message-ID: E1cWocj-0005V5-36@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Reset hot standby xmin on master after restart

Hot_standby_feedback could be reset by reload and worked correctly, but if
the server was restarted rather than reloaded the xmin was not reset.
Force reset always if hot_standby_feedback is enabled at startup.

Ants Aasma, Craig Ringer

Reported-by: Ants Aasma

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ec4b975016b873292ba5e3d645b414acf1b96c06

Modified Files
--------------
src/backend/replication/walreceiver.c | 21 ++++++++++++++-------
src/test/recovery/t/001_stream_rep.pl | 21 ++++++++++++++++++++-
2 files changed, 34 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-01-26 18:21:41 pgsql: Add object_address tests for publications and subscriptions
Previous Message Tom Lane 2017-01-26 17:18:21 pgsql: Ensure that a tsquery like '!foo' matches empty tsvectors.