forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaf5b3c3
committed
Fix assertion failure with PL/Python exceptions
PLy_elog() was not able to handle correctly cases where a SPI calledfailed, which would fill in a DETAIL string able to trigger anassertion. We may want to improve this infrastructure so as it is ableto provide any extra detail information provided by an error stack, butthis is left as a future improvement as it could impact existing errorstacks and any applications that depend on them. For now, the assertionis removed and a regression test is added to cover the case of a failurewith a detail string.This problem exists since2bd78eb, so backpatch all the way downwith tweaks to the regression tests output added where required.Author: Alexander LakhinDiscussion:https://postgr.es/m/18070-ab9c171cbf4ebb0f@postgresql.orgBackpatch-through: 111 parentc103d07 commitaf5b3c3
File tree
4 files changed
+37
-3
lines changed- src/pl/plpython
- expected
- sql
4 files changed
+37
-3
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
445 | 445 |
| |
446 | 446 |
| |
447 | 447 |
| |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + |
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
445 | 445 |
| |
446 | 446 |
| |
447 | 447 |
| |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + |
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 | 106 |
| |
110 | 107 |
| |
111 | 108 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
344 | 344 |
| |
345 | 345 |
| |
346 | 346 |
| |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + |
0 commit comments
Comments
(0)