forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite434d36
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 parent2c4dd36 commite434d36
2 files changed
+26
-19
lines changedLines changed: 24 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2646 | 2646 |
| |
2647 | 2647 |
| |
2648 | 2648 |
| |
2649 |
| - | |
2650 |
| - | |
2651 |
| - | |
2652 |
| - | |
2653 |
| - | |
2654 |
| - | |
2655 |
| - | |
| 2649 | + | |
2656 | 2650 |
| |
2657 | 2651 |
| |
2658 | 2652 |
| |
| |||
2662 | 2656 |
| |
2663 | 2657 |
| |
2664 | 2658 |
| |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
2665 | 2670 |
| |
2666 | 2671 |
| |
2667 | 2672 |
| |
| |||
3289 | 3294 |
| |
3290 | 3295 |
| |
3291 | 3296 |
| |
3292 |
| - | |
3293 |
| - | |
3294 |
| - | |
3295 |
| - | |
3296 |
| - | |
3297 |
| - | |
3298 |
| - | |
3299 |
| - | |
3300 |
| - | |
3301 |
| - | |
| 3297 | + | |
3302 | 3298 |
| |
3303 | 3299 |
| |
3304 | 3300 |
| |
| |||
3308 | 3304 |
| |
3309 | 3305 |
| |
3310 | 3306 |
| |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
3311 | 3318 |
| |
3312 | 3319 |
| |
3313 | 3320 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1235 | 1235 |
| |
1236 | 1236 |
| |
1237 | 1237 |
| |
1238 |
| - | |
1239 |
| - | |
| 1238 | + | |
| 1239 | + | |
1240 | 1240 |
| |
1241 | 1241 |
| |
1242 | 1242 |
| |
|
0 commit comments
Comments
(0)