forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit825ebc9
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 parentccb479e commit825ebc9
1 file changed
+36
-18
lines changedLines changed: 36 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
413 | 413 |
| |
414 | 414 |
| |
415 | 415 |
| |
416 |
| - | |
| 416 | + | |
417 | 417 |
| |
418 | 418 |
| |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
419 | 428 |
| |
420 | 429 |
| |
421 |
| - | |
422 |
| - | |
423 |
| - | |
424 |
| - | |
425 | 430 |
| |
426 | 431 |
| |
427 | 432 |
| |
| |||
685 | 690 |
| |
686 | 691 |
| |
687 | 692 |
| |
688 |
| - | |
689 |
| - | |
| 693 | + | |
| 694 | + | |
690 | 695 |
| |
691 |
| - | |
692 |
| - | |
| 696 | + | |
| 697 | + | |
693 | 698 |
| |
694 | 699 |
| |
695 |
| - | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
696 | 710 |
| |
697 |
| - | |
698 |
| - | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
699 | 715 |
| |
| 716 | + | |
| 717 | + | |
700 | 718 |
| |
| 719 | + | |
| 720 | + | |
701 | 721 |
| |
702 | 722 |
| |
703 | 723 |
| |
| |||
837 | 857 |
| |
838 | 858 |
| |
839 | 859 |
| |
840 |
| - | |
841 |
| - | |
842 |
| - | |
843 |
| - | |
844 |
| - | |
845 |
| - | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
846 | 863 |
| |
847 | 864 |
| |
848 | 865 |
| |
| |||
863 | 880 |
| |
864 | 881 |
| |
865 | 882 |
| |
| 883 | + | |
866 | 884 |
| |
867 | 885 |
| |
868 | 886 |
| |
|
0 commit comments
Comments
(0)