forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9c1afd3
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 parent2280912 commit9c1afd3
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1045 | 1045 |
| |
1046 | 1046 |
| |
1047 | 1047 |
| |
1048 |
| - | |
| 1048 | + | |
1049 | 1049 |
| |
1050 | 1050 |
| |
1051 | 1051 |
| |
1052 | 1052 |
| |
1053 | 1053 |
| |
1054 | 1054 |
| |
1055 | 1055 |
| |
1056 |
| - | |
| 1056 | + | |
1057 | 1057 |
| |
1058 | 1058 |
| |
1059 | 1059 |
| |
|
0 commit comments
Comments
(0)