forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb8a606e
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 parenta5e95ff commitb8a606e
2 files changed
+26
-19
lines changedLines changed: 24 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2677 | 2677 |
| |
2678 | 2678 |
| |
2679 | 2679 |
| |
2680 |
| - | |
2681 |
| - | |
2682 |
| - | |
2683 |
| - | |
2684 |
| - | |
2685 |
| - | |
2686 |
| - | |
| 2680 | + | |
2687 | 2681 |
| |
2688 | 2682 |
| |
2689 | 2683 |
| |
| |||
2693 | 2687 |
| |
2694 | 2688 |
| |
2695 | 2689 |
| |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
2696 | 2701 |
| |
2697 | 2702 |
| |
2698 | 2703 |
| |
| |||
3320 | 3325 |
| |
3321 | 3326 |
| |
3322 | 3327 |
| |
3323 |
| - | |
3324 |
| - | |
3325 |
| - | |
3326 |
| - | |
3327 |
| - | |
3328 |
| - | |
3329 |
| - | |
3330 |
| - | |
3331 |
| - | |
3332 |
| - | |
| 3328 | + | |
3333 | 3329 |
| |
3334 | 3330 |
| |
3335 | 3331 |
| |
| |||
3339 | 3335 |
| |
3340 | 3336 |
| |
3341 | 3337 |
| |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
3342 | 3349 |
| |
3343 | 3350 |
| |
3344 | 3351 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1220 | 1220 |
| |
1221 | 1221 |
| |
1222 | 1222 |
| |
1223 |
| - | |
1224 |
| - | |
| 1223 | + | |
| 1224 | + | |
1225 | 1225 |
| |
1226 | 1226 |
| |
1227 | 1227 |
| |
|
0 commit comments
Comments
(0)