- Notifications
You must be signed in to change notification settings - Fork5
Commitb33f78d
committed
Fix trigger WHEN conditions when both BEFORE and AFTER triggers exist.
Due to tuple-slot mismanagement, evaluation of WHEN conditions for AFTERROW UPDATE triggers could crash if there had been a BEFORE ROW triggerfired for the same update. Fix by not trying to overload the use ofestate->es_trig_tuple_slot. Per report from Yoran Heling.Back-patch to 9.0, when trigger WHEN conditions were introduced.1 parent6cc08e7 commitb33f78d
File tree
6 files changed
+62
-4
lines changed- src
- backend
- commands
- executor
- include/nodes
- test/regress
- expected
- sql
6 files changed
+62
-4
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2770 | 2770 |
| |
2771 | 2771 |
| |
2772 | 2772 |
| |
2773 |
| - | |
| 2773 | + | |
2774 | 2774 |
| |
2775 | 2775 |
| |
2776 |
| - | |
| 2776 | + | |
2777 | 2777 |
| |
2778 | 2778 |
| |
2779 |
| - | |
| 2779 | + | |
2780 | 2780 |
| |
2781 | 2781 |
| |
2782 | 2782 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
871 | 871 |
| |
872 | 872 |
| |
873 | 873 |
| |
| 874 | + | |
874 | 875 |
| |
875 | 876 |
| |
876 | 877 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
| 127 | + | |
127 | 128 |
| |
128 | 129 |
| |
129 | 130 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
354 | 354 |
| |
355 | 355 |
| |
356 | 356 |
| |
357 |
| - | |
| 357 | + | |
| 358 | + | |
358 | 359 |
| |
359 | 360 |
| |
360 | 361 |
| |
|
Lines changed: 29 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
446 | 446 |
| |
447 | 447 |
| |
448 | 448 |
| |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
449 | 478 |
| |
450 | 479 |
| |
451 | 480 |
| |
|
Lines changed: 26 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
311 | 337 |
| |
312 | 338 |
| |
313 | 339 |
| |
|
0 commit comments
Comments
(0)