pgsql: Correct epoch of txid_current() when executed on a Hot Standby s

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Correct epoch of txid_current() when executed on a Hot Standby s
Date: 2012-03-29 13:56:45
Message-ID: E1SDFqH-0005S4-PF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Correct epoch of txid_current() when executed on a Hot Standby server.
Initialise ckptXidEpoch from starting checkpoint and maintain the correct
value as we roll forwards. This allows GetNextXidAndEpoch() to return the
correct epoch when executed during recovery. Backpatch to 9.0 when the
problem is first observable by a user.

Bug report from Daniel Farina

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/68219aaf6b8c6214e5f4a6124bd5607254aad6b3

Modified Files
--------------
src/backend/access/transam/xlog.c | 30 ++++++++++++++++++++++++++----
1 files changed, 26 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2012-03-29 13:57:42 pgsql: Correct epoch of txid_current() when executed on a Hot Standby s
Previous Message Andrew Dunstan 2012-03-29 08:13:00 pgsql: Unbreak Windows builds broken by pgpipe removal.