forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit84d723b
committed
Previous fix for temporary file management broke returning a set from
PL/pgSQL function within an exception handler. Make sure we use the rightresource owner when we create the tuplestore to hold returned tuples.Simplify tuplestore API so that the caller doesn't need to be in the rightmemory context when calling tuplestore_put* functions. tuplestore.cautomatically switches to the memory context used when the tuplestore wascreated. Tuplesort was already modified like this earlier. This patch alsoremoves the now useless MemoryContextSwitch calls from callers.Report by Aleksei on pgsql-bugs on Dec 22 2009. Backpatch to 8.1, likethe previous patch that broke this.1 parent50ef9f7 commit84d723b
File tree
14 files changed
+75
-103
lines changed- contrib
- dblink
- pg_stat_statements
- tablefunc
- xml2
- src
- backend
- commands
- executor
- utils
- mmgr
- sort
- pl
- plperl
- plpgsql/src
14 files changed
+75
-103
lines changedLines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1703 | 1703 |
| |
1704 | 1704 |
| |
1705 | 1705 |
| |
1706 |
| - | |
1707 |
| - | |
1708 | 1706 |
| |
1709 |
| - | |
1710 | 1707 |
| |
1711 | 1708 |
| |
1712 | 1709 |
| |
|
Lines changed: 3 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| |||
783 | 783 |
| |
784 | 784 |
| |
785 | 785 |
| |
| 786 | + | |
| 787 | + | |
786 | 788 |
| |
787 | 789 |
| |
788 | 790 |
| |
| |||
793 | 795 |
| |
794 | 796 |
| |
795 | 797 |
| |
796 |
| - | |
797 |
| - | |
798 |
| - | |
799 | 798 |
| |
800 | 799 |
| |
801 | 800 |
| |
| |||
833 | 832 |
| |
834 | 833 |
| |
835 | 834 |
| |
836 |
| - | |
837 |
| - | |
838 | 835 |
| |
839 | 836 |
| |
840 | 837 |
| |
| |||
843 | 840 |
| |
844 | 841 |
| |
845 | 842 |
| |
846 |
| - | |
847 |
| - | |
848 | 843 |
| |
849 | 844 |
| |
850 | 845 |
| |
|
Lines changed: 2 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
567 | 567 |
| |
568 | 568 |
| |
569 | 569 |
| |
570 |
| - | |
| 570 | + | |
571 | 571 |
| |
572 |
| - | |
573 |
| - | |
574 |
| - | |
575 | 572 |
| |
576 |
| - | |
577 |
| - | |
578 | 573 |
| |
579 | 574 |
| |
580 | 575 |
| |
| |||
807 | 802 |
| |
808 | 803 |
| |
809 | 804 |
| |
810 |
| - | |
811 | 805 |
| |
812 | 806 |
| |
813 | 807 |
| |
| |||
907 | 901 |
| |
908 | 902 |
| |
909 | 903 |
| |
910 |
| - | |
911 |
| - | |
912 | 904 |
| |
913 |
| - | |
914 | 905 |
| |
915 | 906 |
| |
916 | 907 |
| |
| |||
943 | 934 |
| |
944 | 935 |
| |
945 | 936 |
| |
946 |
| - | |
947 |
| - | |
948 | 937 |
| |
949 |
| - | |
950 | 938 |
| |
951 | 939 |
| |
952 | 940 |
| |
| |||
1232 | 1220 |
| |
1233 | 1221 |
| |
1234 | 1222 |
| |
1235 |
| - | |
1236 | 1223 |
| |
1237 | 1224 |
| |
1238 | 1225 |
| |
| |||
1310 | 1297 |
| |
1311 | 1298 |
| |
1312 | 1299 |
| |
1313 |
| - | |
1314 |
| - | |
1315 |
| - | |
1316 | 1300 |
| |
1317 | 1301 |
| |
1318 | 1302 |
| |
1319 |
| - | |
1320 |
| - | |
1321 |
| - | |
1322 | 1303 |
| |
1323 | 1304 |
| |
1324 | 1305 |
| |
| |||
1404 | 1385 |
| |
1405 | 1386 |
| |
1406 | 1387 |
| |
1407 |
| - | |
1408 |
| - | |
1409 |
| - | |
1410 | 1388 |
| |
1411 | 1389 |
| |
1412 | 1390 |
| |
1413 |
| - | |
1414 |
| - | |
1415 |
| - | |
1416 | 1391 |
| |
1417 | 1392 |
| |
1418 | 1393 |
| |
|
Lines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
821 | 821 |
| |
822 | 822 |
| |
823 | 823 |
| |
824 |
| - | |
825 | 824 |
| |
826 |
| - | |
827 | 825 |
| |
828 | 826 |
| |
829 | 827 |
| |
| |||
897 | 895 |
| |
898 | 896 |
| |
899 | 897 |
| |
900 |
| - | |
901 | 898 |
| |
902 |
| - | |
903 | 899 |
| |
904 | 900 |
| |
905 | 901 |
| |
|
Lines changed: 4 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
779 | 779 |
| |
780 | 780 |
| |
781 | 781 |
| |
| 782 | + | |
| 783 | + | |
| 784 | + | |
782 | 785 |
| |
783 | 786 |
| |
784 | 787 |
| |
| |||
791 | 794 |
| |
792 | 795 |
| |
793 | 796 |
| |
794 |
| - | |
795 |
| - | |
796 |
| - | |
797 | 797 |
| |
798 | 798 |
| |
799 | 799 |
| |
| |||
803 | 803 |
| |
804 | 804 |
| |
805 | 805 |
| |
806 |
| - | |
807 |
| - | |
808 | 806 |
| |
809 | 807 |
| |
810 | 808 |
| |
811 | 809 |
| |
812 | 810 |
| |
813 | 811 |
| |
814 | 812 |
| |
815 |
| - | |
816 |
| - | |
817 | 813 |
| |
818 | 814 |
| |
819 | 815 |
| |
|
Lines changed: 1 addition & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
2038 | 2038 |
| |
2039 | 2039 |
| |
2040 | 2040 |
| |
2041 |
| - | |
2042 | 2041 |
| |
2043 | 2042 |
| |
2044 | 2043 |
| |
2045 |
| - | |
2046 |
| - | |
2047 | 2044 |
| |
2048 |
| - | |
2049 |
| - | |
2050 | 2045 |
| |
2051 | 2046 |
| |
2052 | 2047 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1405 | 1405 |
| |
1406 | 1406 |
| |
1407 | 1407 |
| |
1408 |
| - | |
1409 | 1408 |
| |
1410 | 1409 |
| |
1411 | 1410 |
| |
1412 | 1411 |
| |
1413 | 1412 |
| |
1414 |
| - | |
1415 | 1413 |
| |
1416 |
| - | |
1417 | 1414 |
| |
1418 | 1415 |
| |
1419 | 1416 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| |||
723 | 723 |
| |
724 | 724 |
| |
725 | 725 |
| |
726 |
| - | |
| 726 | + | |
727 | 727 |
| |
728 | 728 |
| |
729 | 729 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
97 |
| - | |
98 | 97 |
| |
99 | 98 |
| |
100 |
| - | |
101 |
| - | |
102 | 99 |
| |
103 | 100 |
| |
104 | 101 |
| |
|
Lines changed: 4 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
923 | 923 |
| |
924 | 924 |
| |
925 | 925 |
| |
| 926 | + | |
| 927 | + | |
| 928 | + | |
926 | 929 |
| |
927 | 930 |
| |
928 | 931 |
| |
| |||
934 | 937 |
| |
935 | 938 |
| |
936 | 939 |
| |
937 |
| - | |
938 |
| - | |
939 |
| - | |
940 | 940 |
| |
941 | 941 |
| |
942 | 942 |
| |
| |||
946 | 946 |
| |
947 | 947 |
| |
948 | 948 |
| |
949 |
| - | |
950 |
| - | |
951 | 949 |
| |
952 | 950 |
| |
953 | 951 |
| |
954 | 952 |
| |
955 | 953 |
| |
956 | 954 |
| |
957 |
| - | |
958 |
| - | |
959 | 955 |
| |
960 | 956 |
| |
961 | 957 |
| |
|
0 commit comments
Comments
(0)