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

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reduce impact of btree page reuse on Hot Standby by fixing off-b
Date: 2011-06-27 21:15:32
Message-ID: E1QbJ9Y-00029E-S7@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
------
master

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2011-06-27 21:16:04 pgsql: Reduce impact of btree page reuse on Hot Standby by fixing off-b
Previous Message Robert Haas 2011-06-27 19:26:02 pgsql: Allow callers to pass a missing_ok flag when opening a relation.