forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita493f93
committed
Fix nextXid tracking bug on standbys (9.5-11 only).
RecordKnownAssignedTransactionIds() should never movenextXid backwards. Before this commit, that could happenif some other code path had advanced it without advancinglatestObservedXid.One consequence is that a well timed XLOG_CHECKPOINT_ONLINEcould cause hot standby feedback messages to get confusedand report an xmin from a future epoch, potentially allowingvacuum to run too soon on the primary.Repair, by making sure RecordKnownAssignedTransactionIds()can only move nextXid forwards.In release 12 and master, this was already done by commit2fc7af5, which consolidated similar code and straightenedout this bug. Back-patch to supported releases before that.Author: Eka Palamadai <ekanatha@amazon.com>Discussion:https://postgr.es/m/98BB4805-D0A2-48E1-96F4-15014313EADC@amazon.com1 parent13f353b commita493f93
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3256 | 3256 |
| |
3257 | 3257 |
| |
3258 | 3258 |
| |
3259 |
| - | |
| 3259 | + | |
| 3260 | + | |
3260 | 3261 |
| |
3261 | 3262 |
| |
3262 | 3263 |
| |
|
0 commit comments
Comments
(0)