]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Correct epoch of txid_current() when executed on a Hot Standby server.
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 29 Mar 2012 13:58:02 +0000 (14:58 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 29 Mar 2012 13:58:02 +0000 (14:58 +0100)
commitefff1cc5fe541ee01488981becd8a54e0f8af49f
treea8127170cdb0bae16522960445ee29b6f9905524
parent70e94d2dd7ccfa38b13e8d9f6e58db913fe3ec17
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