forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2a4b6ee
committed
Compare Xmin to previous Xmax when locking an update chain
Not doing so causes us to traverse an update chain that has been brokenby concurrent page pruning. All other code that traverses update chainsuses this check as one of the cases in which to stop iterating, soreplicate it here too. Failure to do so leads to erroneous CLOG,subtrans or multixact lookups.Per discussion following the bug report by J Smith inCADFUPgc5bmtv-yg9znxV-vcfkb+JPRqs7m2OesQXaM_4Z1JpdQ@mail.gmail.comas diagnosed by Andres Freund.1 parent4ed0640 commit2a4b6ee
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4797 | 4797 |
| |
4798 | 4798 |
| |
4799 | 4799 |
| |
| 4800 | + | |
4800 | 4801 |
| |
4801 | 4802 |
| |
4802 | 4803 |
| |
| |||
4822 | 4823 |
| |
4823 | 4824 |
| |
4824 | 4825 |
| |
| 4826 | + | |
| 4827 | + | |
| 4828 | + | |
| 4829 | + | |
| 4830 | + | |
| 4831 | + | |
| 4832 | + | |
| 4833 | + | |
| 4834 | + | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
4825 | 4838 |
| |
4826 | 4839 |
| |
4827 | 4840 |
| |
| |||
4922 | 4935 |
| |
4923 | 4936 |
| |
4924 | 4937 |
| |
| 4938 | + | |
4925 | 4939 |
| |
4926 | 4940 |
| |
4927 | 4941 |
| |
|
0 commit comments
Comments
(0)