forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7cfdb4d
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 parent0350b87 commit7cfdb4d
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
920 | 920 |
| |
921 | 921 |
| |
922 | 922 |
| |
923 |
| - | |
| 923 | + | |
924 | 924 |
| |
925 | 925 |
| |
926 | 926 |
| |
927 | 927 |
| |
928 | 928 |
| |
929 | 929 |
| |
930 | 930 |
| |
931 |
| - | |
| 931 | + | |
932 | 932 |
| |
933 | 933 |
| |
934 | 934 |
| |
|
0 commit comments
Comments
(0)