forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit59c62a2
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 parent3a95d2c commit59c62a2
2 files changed
+26
-19
lines changedLines changed: 24 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2918 | 2918 |
| |
2919 | 2919 |
| |
2920 | 2920 |
| |
2921 |
| - | |
2922 |
| - | |
2923 |
| - | |
2924 |
| - | |
2925 |
| - | |
2926 |
| - | |
2927 |
| - | |
| 2921 | + | |
2928 | 2922 |
| |
2929 | 2923 |
| |
2930 | 2924 |
| |
| |||
2934 | 2928 |
| |
2935 | 2929 |
| |
2936 | 2930 |
| |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
2937 | 2942 |
| |
2938 | 2943 |
| |
2939 | 2944 |
| |
| |||
3563 | 3568 |
| |
3564 | 3569 |
| |
3565 | 3570 |
| |
3566 |
| - | |
3567 |
| - | |
3568 |
| - | |
3569 |
| - | |
3570 |
| - | |
3571 |
| - | |
3572 |
| - | |
3573 |
| - | |
3574 |
| - | |
3575 |
| - | |
| 3571 | + | |
3576 | 3572 |
| |
3577 | 3573 |
| |
3578 | 3574 |
| |
| |||
3582 | 3578 |
| |
3583 | 3579 |
| |
3584 | 3580 |
| |
| 3581 | + | |
| 3582 | + | |
| 3583 | + | |
| 3584 | + | |
| 3585 | + | |
| 3586 | + | |
| 3587 | + | |
| 3588 | + | |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
3585 | 3592 |
| |
3586 | 3593 |
| |
3587 | 3594 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1453 | 1453 |
| |
1454 | 1454 |
| |
1455 | 1455 |
| |
1456 |
| - | |
1457 |
| - | |
| 1456 | + | |
| 1457 | + | |
1458 | 1458 |
| |
1459 | 1459 |
| |
1460 | 1460 |
| |
|
0 commit comments
Comments
(0)