forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2873fbf
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 parentfef92f9 commit2873fbf
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 | |
---|---|---|---|
| |||
2856 | 2856 |
| |
2857 | 2857 |
| |
2858 | 2858 |
| |
2859 |
| - | |
2860 |
| - | |
2861 |
| - | |
2862 |
| - | |
2863 |
| - | |
2864 |
| - | |
2865 |
| - | |
| 2859 | + | |
2866 | 2860 |
| |
2867 | 2861 |
| |
2868 | 2862 |
| |
| |||
2872 | 2866 |
| |
2873 | 2867 |
| |
2874 | 2868 |
| |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
2875 | 2880 |
| |
2876 | 2881 |
| |
2877 | 2882 |
| |
| |||
3483 | 3488 |
| |
3484 | 3489 |
| |
3485 | 3490 |
| |
3486 |
| - | |
3487 |
| - | |
3488 |
| - | |
3489 |
| - | |
3490 |
| - | |
3491 |
| - | |
3492 |
| - | |
3493 |
| - | |
3494 |
| - | |
3495 |
| - | |
| 3491 | + | |
3496 | 3492 |
| |
3497 | 3493 |
| |
3498 | 3494 |
| |
| |||
3502 | 3498 |
| |
3503 | 3499 |
| |
3504 | 3500 |
| |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + | |
| 3508 | + | |
| 3509 | + | |
| 3510 | + | |
| 3511 | + | |
3505 | 3512 |
| |
3506 | 3513 |
| |
3507 | 3514 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1455 | 1455 |
| |
1456 | 1456 |
| |
1457 | 1457 |
| |
1458 |
| - | |
1459 |
| - | |
| 1458 | + | |
| 1459 | + | |
1460 | 1460 |
| |
1461 | 1461 |
| |
1462 | 1462 |
| |
|
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)