forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8deb6b3
committed
Reinstate HEAP_XMAX_LOCK_ONLY|HEAP_KEYS_UPDATED as allowed
Commit866e24d added an assert that HEAP_XMAX_LOCK_ONLY andHEAP_KEYS_UPDATED cannot appear together, on the faulty assumption thatthe latter necessarily referred to an update and not a tuple lock; butthat's wrong, because SELECT FOR UPDATE can use precisely thatcombination, as evidenced by the amcheck test case added here.Remove the Assert(), and also patch amcheck's verify_heapam.c to notcomplain if the combination is found. Also, out of overabundance ofcaution, update (across all branches) README.tuplock to be more explicitabout this.Author: Julien Rouhaud <rjuju123@gmail.com>Reviewed-by: Mahendra Singh Thalor <mahi6run@gmail.com>Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>Discussion:https://postgr.es/m/20210124061758.GA11756@nol1 parent3db05e7 commit8deb6b3
File tree
4 files changed
+20
-16
lines changed- contrib/amcheck
- t
- src/backend/access/heap
4 files changed
+20
-16
lines changedLines changed: 13 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 |
| |
51 | 54 |
| |
52 | 55 |
| |
| |||
92 | 95 |
| |
93 | 96 |
| |
94 | 97 |
| |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
95 | 107 |
| |
96 | 108 |
| |
97 | 109 |
| |
|
Lines changed: 0 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
608 | 608 |
| |
609 | 609 |
| |
610 | 610 |
| |
611 |
| - | |
612 |
| - | |
613 |
| - | |
614 |
| - | |
615 |
| - | |
616 |
| - | |
617 |
| - | |
618 | 611 |
| |
619 | 612 |
| |
620 | 613 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 |
| - | |
150 |
| - | |
151 |
| - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
152 | 153 |
| |
153 | 154 |
| |
154 | 155 |
|
Lines changed: 3 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
53 |
| - | |
54 |
| - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
55 | 55 |
| |
56 |
| - | |
57 |
| - | |
58 | 56 |
| |
59 | 57 |
| |
60 | 58 |
| |
|
0 commit comments
Comments
(0)