]> granicus.if.org Git - postgresql/commit
XidEpoch++ if wraparound during checkpoint.
authorSimon Riggs <simon@2ndQuadrant.com>
Sun, 2 Dec 2012 14:57:44 +0000 (14:57 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 2 Dec 2012 14:57:44 +0000 (14:57 +0000)
commitc11130690d6dca64267201a169cfb38c1adec5ef
treeac5ad6e1e03c72353324221cd84db9ad1c9eac56
parent9f98704b8229f75fb6ec6e379c23cfea51a8f1e4
XidEpoch++ if wraparound during checkpoint.
If wal_level = hot_standby we update the checkpoint nextxid,
though in the case where a wraparound occurred half-way through
a checkpoint we would neglect updating the epoch also. Updating
the nextxid is arguably the wrong thing to do, but changing that
may introduce subtle bugs into hot standby startup, while updating
the value doesn't cause any known bugs yet. Minimal fix now to
HEAD and backbranches, wider fix later in HEAD.

Bug reported in #6291 by Daniel Farina and slightly differently in

Cause analysis and recommended fixes from Tom Lane and Andres Freund.

Applied patch is minimal version of Andres Freund's work.
src/backend/access/transam/xlog.c