forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfd1347f
committed
Fix thinko in plpgsql memory leak fix.
Commita6b1f53 intended to place the transient "target" list ofa CALL statement in the function's statement-lifespan context,but I fat-fingered that and used get_eval_mcontext() instead ofget_stmt_mcontext(). The eval_mcontext belongs to the "simpleexpression" infrastructure, which is destroyed at transaction end.The net effect is that a CALL in a procedure to another procedurethat has OUT or INOUT parameters would fail if the called proceduredid a COMMIT.Per report from Peter Eisentraut. Back-patch to v11, like theprior patch.Discussion:https://postgr.es/m/f075f7be-c654-9aa8-3ffc-e9214622f02a@enterprisedb.com1 parent190f0af commitfd1347f
File tree
3 files changed
+47
-2
lines changed- src/pl/plpgsql/src
- expected
- sql
3 files changed
+47
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
155 | 176 | | |
156 | 177 | | |
157 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2212 | 2212 | | |
2213 | 2213 | | |
2214 | 2214 | | |
2215 | | - | |
2216 | | - | |
| 2215 | + | |
| 2216 | + | |
2217 | 2217 | | |
2218 | 2218 | | |
2219 | 2219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
144 | 168 | | |
145 | 169 | | |
146 | 170 | | |
| |||
0 commit comments
Comments
(0)