forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9fee323
committed
Fix assertions with RI triggers in heap_update and heap_delete.
If the tuple being updated is not visible to the crosscheck snapshot,we return TM_Updated but the assertions would not hold in that case.Move them to before the cross-check.Fixes bug #17893. Backpatch to all supported versions.Author: Alexander LakhinBackpatch-through: 12Discussion:https://www.postgresql.org/message-id/17893-35847009eec517b5%40postgresql.org1 parent07cb7bc commit9fee323
File tree
4 files changed
+64
-20
lines changed- src
- backend/access/heap
- include/access
- test/isolation
- expected
- specs
4 files changed
+64
-20
lines changedLines changed: 24 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2717 | 2717 |
| |
2718 | 2718 |
| |
2719 | 2719 |
| |
2720 |
| - | |
2721 |
| - | |
2722 |
| - | |
2723 |
| - | |
2724 |
| - | |
2725 |
| - | |
2726 |
| - | |
| 2720 | + | |
2727 | 2721 |
| |
2728 | 2722 |
| |
2729 | 2723 |
| |
| |||
2733 | 2727 |
| |
2734 | 2728 |
| |
2735 | 2729 |
| |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
2736 | 2741 |
| |
2737 | 2742 |
| |
2738 | 2743 |
| |
| |||
3351 | 3356 |
| |
3352 | 3357 |
| |
3353 | 3358 |
| |
3354 |
| - | |
3355 |
| - | |
3356 |
| - | |
3357 |
| - | |
3358 |
| - | |
3359 |
| - | |
3360 |
| - | |
3361 |
| - | |
3362 |
| - | |
3363 |
| - | |
| 3359 | + | |
3364 | 3360 |
| |
3365 | 3361 |
| |
3366 | 3362 |
| |
| |||
3370 | 3366 |
| |
3371 | 3367 |
| |
3372 | 3368 |
| |
| 3369 | + | |
| 3370 | + | |
| 3371 | + | |
| 3372 | + | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
3373 | 3380 |
| |
3374 | 3381 |
| |
3375 | 3382 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1479 | 1479 |
| |
1480 | 1480 |
| |
1481 | 1481 |
| |
1482 |
| - | |
1483 |
| - | |
| 1482 | + | |
| 1483 | + | |
1484 | 1484 |
| |
1485 | 1485 |
| |
1486 | 1486 |
| |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + |
Lines changed: 16 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 |
| |
17 | 22 |
| |
18 | 23 |
| |
19 | 24 |
| |
20 | 25 |
| |
21 | 26 |
| |
22 | 27 |
| |
23 |
| - | |
| 28 | + | |
24 | 29 |
| |
25 | 30 |
| |
26 | 31 |
| |
27 | 32 |
| |
28 | 33 |
| |
29 | 34 |
| |
30 | 35 |
| |
| 36 | + | |
31 | 37 |
| |
32 | 38 |
| |
33 | 39 |
| |
| |||
38 | 44 |
| |
39 | 45 |
| |
40 | 46 |
| |
| 47 | + | |
41 | 48 |
| |
42 | 49 |
| |
43 | 50 |
| |
| |||
59 | 66 |
| |
60 | 67 |
| |
61 | 68 |
| |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + |
0 commit comments
Comments
(0)