forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2496439
committed
Move return statements out of PG_TRY blocks.
If we exit a PG_TRY block early via "continue", "break", "goto", or"return", we'll skip unwinding its exception stack. This changemoves a couple of such "return" statements in PL/Python out ofPG_TRY blocks. This was introduced ind0aa965 and affects allsupported versions.We might also be able to add compile-time checks to preventrecurrence, but that is left as a future exercise.Reported-by: Mikhail Gribkov, Xing GuoAuthor: Xing GuoReviewed-by: Michael Paquier, Andres Freund, Tom LaneDiscussion:https://postgr.es/m/CAMEv5_v5Y%2B-D%3DCO1%2Bqoe16sAmgC4sbbQjz%2BUtcHmB6zcgS%2B5Ew%40mail.gmail.comDiscussion:https://postgr.es/m/CACpMh%2BCMsGMRKFzFMm3bYTzQmMU5nfEEoEDU2apJcc4hid36AQ%40mail.gmail.comBackpatch-through: 11 (all supported versions)1 parent580df50 commit2496439
1 file changed
+36
-18
lines changedLines changed: 36 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
424 | 424 |
| |
425 | 425 |
| |
426 | 426 |
| |
427 |
| - | |
| 427 | + | |
428 | 428 |
| |
429 | 429 |
| |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
430 | 439 |
| |
431 | 440 |
| |
432 |
| - | |
433 |
| - | |
434 |
| - | |
435 |
| - | |
436 | 441 |
| |
437 | 442 |
| |
438 | 443 |
| |
| |||
696 | 701 |
| |
697 | 702 |
| |
698 | 703 |
| |
699 |
| - | |
700 |
| - | |
| 704 | + | |
| 705 | + | |
701 | 706 |
| |
702 |
| - | |
703 |
| - | |
| 707 | + | |
| 708 | + | |
704 | 709 |
| |
705 | 710 |
| |
706 |
| - | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
707 | 721 |
| |
708 |
| - | |
709 |
| - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
710 | 726 |
| |
| 727 | + | |
| 728 | + | |
711 | 729 |
| |
| 730 | + | |
| 731 | + | |
712 | 732 |
| |
713 | 733 |
| |
714 | 734 |
| |
| |||
848 | 868 |
| |
849 | 869 |
| |
850 | 870 |
| |
851 |
| - | |
852 |
| - | |
853 |
| - | |
854 |
| - | |
855 |
| - | |
856 |
| - | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
857 | 874 |
| |
858 | 875 |
| |
859 | 876 |
| |
| |||
874 | 891 |
| |
875 | 892 |
| |
876 | 893 |
| |
| 894 | + | |
877 | 895 |
| |
878 | 896 |
| |
879 | 897 |
| |
|
0 commit comments
Comments
(0)