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