forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7efa841
committed
Rethink plpgsql's way of handling SPI execution during an exception block.
We don't really want to start a new SPI connection, just keep using the oldone; otherwise we have memory management problems as illustrated byJohn Kennedy's bug report of today. This requires a bit of a hack toensure the SPI stack state is properly restored, but then again what wewere doing before was a hack too, strictly speaking. Add a regressiontest to cover this case.1 parent2bb3bcf commit7efa841
File tree
5 files changed
+72
-20
lines changed- src
- backend/executor
- include/executor
- pl/plpgsql/src
- test/regress
- expected
- sql
5 files changed
+72
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
273 | 281 | | |
274 | 282 | | |
275 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
903 | 902 | | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | 903 | | |
909 | 904 | | |
910 | 905 | | |
911 | 906 | | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | 907 | | |
917 | 908 | | |
918 | 909 | | |
| |||
928 | 919 | | |
929 | 920 | | |
930 | 921 | | |
931 | | - | |
| 922 | + | |
932 | 923 | | |
933 | 924 | | |
934 | 925 | | |
935 | 926 | | |
936 | | - | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
937 | 933 | | |
938 | 934 | | |
939 | 935 | | |
| |||
960 | 956 | | |
961 | 957 | | |
962 | 958 | | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | 959 | | |
968 | 960 | | |
969 | 961 | | |
970 | | - | |
971 | | - | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
972 | 967 | | |
973 | 968 | | |
974 | 969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1931 | 1931 | | |
1932 | 1932 | | |
1933 | 1933 | | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
1934 | 1964 | | |
1935 | 1965 | | |
1936 | 1966 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1696 | 1696 | | |
1697 | 1697 | | |
1698 | 1698 | | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
1699 | 1717 | | |
1700 | 1718 | | |
1701 | 1719 | | |
| |||
0 commit comments
Comments
(0)