forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit581a558
committed
Fix nested error handling in PG_FINALLY
We need to pop the error stack before running the user-suppliedPG_FINALLY code. Otherwise an error in the cleanup code would end upat the same sigsetjmp() invocation and result in an infinite errorhandling loop.Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://www.postgresql.org/message-id/flat/95a822c3-728b-af0e-d7e5-71890507ae0c%402ndquadrant.com1 parenta0c9685 commit581a558
2 files changed
+6
-4
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3868 | 3868 |
| |
3869 | 3869 |
| |
3870 | 3870 |
| |
3871 |
| - | |
| 3871 | + | |
3872 | 3872 |
| |
3873 | 3873 |
| |
3874 | 3874 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
338 | 338 |
| |
339 | 339 |
| |
340 | 340 |
| |
341 |
| - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
342 | 344 |
| |
343 | 345 |
| |
344 | 346 |
| |
345 |
| - | |
346 |
| - | |
347 | 347 |
| |
348 | 348 |
| |
| 349 | + | |
| 350 | + | |
349 | 351 |
| |
350 | 352 |
| |
351 | 353 |
| |
|
0 commit comments
Comments
(0)