- Notifications
You must be signed in to change notification settings - Fork5
Commitc111306
committed
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 througha checkpoint we would neglect updating the epoch also. Updatingthe nextxid is arguably the wrong thing to do, but changing thatmay introduce subtle bugs into hot standby startup, while updatingthe value doesn't cause any known bugs yet. Minimal fix now toHEAD and backbranches, wider fix later in HEAD.Bug reported in #6291 by Daniel Farina and slightly differently inCause analysis and recommended fixes from Tom Lane and Andres Freund.Applied patch is minimal version of Andres Freund's work.1 parent9f98704 commitc111306
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7119 | 7119 |
| |
7120 | 7120 |
| |
7121 | 7121 |
| |
7122 |
| - | |
| 7122 | + | |
| 7123 | + | |
7123 | 7124 |
| |
7124 | 7125 |
| |
| 7126 | + | |
| 7127 | + | |
| 7128 | + | |
7125 | 7129 |
| |
| 7130 | + | |
| 7131 | + | |
| 7132 | + | |
7126 | 7133 |
| |
7127 | 7134 |
| |
7128 | 7135 |
| |
|
0 commit comments
Comments
(0)