forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit578a7fe
committed
Update TransactionXmin when MyProc->xmin is updated
GetSnapshotData() set TransactionXmin = MyProc->xmin, but whenSnapshotResetXmin() advanced MyProc->xmin, it did not advanceTransactionXmin correspondingly. That meant that TransactionXmin couldbe older than MyProc->xmin, and XIDs between than TransactionXmin andthe real MyProc->xmin could be vacuumed away. One known consequence isin pg_subtrans lookups: we might try to look up the status of an XIDthat was already truncated away.Back-patch to all supported versions.Reviewed-by: Andres FreundDiscussion:https://www.postgresql.org/message-id/d27a046d-a1e4-47d1-a95c-fbabe41debb4@iki.fi1 parentdb448ce commit578a7fe
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
875 | 875 |
| |
876 | 876 |
| |
877 | 877 |
| |
878 |
| - | |
| 878 | + | |
879 | 879 |
| |
880 | 880 |
| |
881 | 881 |
| |
882 | 882 |
| |
883 | 883 |
| |
884 | 884 |
| |
885 | 885 |
| |
886 |
| - | |
| 886 | + | |
887 | 887 |
| |
888 | 888 |
| |
889 | 889 |
| |
|
0 commit comments
Comments
(0)