]> granicus.if.org Git - postgresql/commit
Correct epoch of txid_current() when executed on a Hot Standby server.
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 29 Mar 2012 13:57:08 +0000 (14:57 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 29 Mar 2012 13:57:08 +0000 (14:57 +0100)
commit20d98ab6e4110087d1816cd105a40fcc8ce0a307
treea4cda4221136ce505035a66dbb2177ac782452e0
parent4d278b785e22ff8d56ac86d5ed1871e096b2ea80
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
src/backend/access/transam/xlog.c