Skip site navigation (1) Skip section navigation (2)

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

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 Standbys
Date: 2012-03-29 13:57:42
Message-ID: E1SDFrC-0005Sj-Op@gemulon.postgresql.org (view raw or flat)
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
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/20d98ab6e4110087d1816cd105a40fcc8ce0a307

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

pgsql-committers by date

Next:From: Simon RiggsDate: 2012-03-29 13:58:21
Subject: pgsql: Correct epoch of txid_current() when executed on a Hot Standbys
Previous:From: Simon RiggsDate: 2012-03-29 13:56:45
Subject: pgsql: Correct epoch of txid_current() when executed on a Hot Standbys

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group