]> 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:55:30 +0000 (14:55 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 29 Mar 2012 13:55:30 +0000 (14:55 +0100)
commit68219aaf6b8c6214e5f4a6124bd5607254aad6b3
tree56c47596beb5d4e41862a3d51eb73bd115becd77
parentaeca65022609282f004e8332910938abd4eefbd6
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