Thread: pgsql: Reduce impact of btree page reuse on Hot Standby by fixing off-b

pgsql: Reduce impact of btree page reuse on Hot Standby by fixing off-b

From
Simon Riggs
Date:
Reduce impact of btree page reuse on Hot Standby by fixing off-by-1 error.
WAL records of type XLOG_BTREE_REUSE_PAGE were generated using a
latestRemovedXid one higher than actually needed because xid used was
page opaque->btpo.xact rather than an actually removed xid.
Noticed on an otherwise quiet system by Noah Misch.

Noah Misch and Simon Riggs

Branch
------
REL9_1_STABLE

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

Modified Files
--------------
src/backend/access/nbtree/nbtpage.c |   12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)