forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitea80d8d
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 parent643428c commitea80d8d
File tree
3 files changed
+47
-2
lines changed- src/pl/plpgsql/src
- expected
- sql
3 files changed
+47
-2
lines changedLines changed: 21 additions & 0 deletions
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 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2235 | 2235 |
| |
2236 | 2236 |
| |
2237 | 2237 |
| |
2238 |
| - | |
2239 |
| - | |
| 2238 | + | |
| 2239 | + | |
2240 | 2240 |
| |
2241 | 2241 |
| |
2242 | 2242 |
| |
|
Lines changed: 24 additions & 0 deletions
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)