forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9f4992e
committed
Remove memory leak protection from Gather and Gather Merge nodes.
Before commit6b65a7f, tqueue.c couldperform tuple remapping and thus leak memory, which is why commitaf33039 made TupleQueueReaderNextrun in a short-lived context. Now, however, tqueue.c has been reducedto a shadow of its former self, and there shouldn't be any chance ofleaks any more. Accordingly, remove some tuple copying and memorycontext manipulation to speed up processing.Patch by me, reviewed by Amit Kapila. Some testing by Rafia Sabih.Discussion:http://postgr.es/m/CAA4eK1LSDydwrNjmYSNkfJ3ZivGSWH9SVswh6QpNzsMdj_oOQA@mail.gmail.com1 parenta852cfe commit9f4992e
3 files changed
+5
-21
lines changedLines changed: 2 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
134 |
| - | |
135 | 134 |
| |
136 | 135 |
| |
137 | 136 |
| |
| |||
205 | 204 |
| |
206 | 205 |
| |
207 | 206 |
| |
208 |
| - | |
209 |
| - | |
210 |
| - | |
| 207 | + | |
211 | 208 |
| |
212 |
| - | |
213 | 209 |
| |
214 | 210 |
| |
215 | 211 |
| |
| |||
258 | 254 |
| |
259 | 255 |
| |
260 | 256 |
| |
261 |
| - | |
262 | 257 |
| |
263 | 258 |
| |
264 | 259 |
| |
| |||
267 | 262 |
| |
268 | 263 |
| |
269 | 264 |
| |
270 |
| - | |
271 |
| - | |
272 |
| - | |
273 |
| - | |
274 | 265 |
| |
275 |
| - | |
276 | 266 |
| |
277 | 267 |
| |
278 | 268 |
| |
279 | 269 |
| |
280 | 270 |
| |
281 | 271 |
| |
282 | 272 |
| |
283 |
| - | |
| 273 | + | |
284 | 274 |
| |
285 | 275 |
| |
286 | 276 |
| |
|
Lines changed: 1 addition & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
609 | 609 |
| |
610 | 610 |
| |
611 | 611 |
| |
612 |
| - | |
| 612 | + | |
613 | 613 |
| |
614 | 614 |
| |
615 | 615 |
| |
| |||
673 | 673 |
| |
674 | 674 |
| |
675 | 675 |
| |
676 |
| - | |
677 | 676 |
| |
678 | 677 |
| |
679 | 678 |
| |
| |||
703 | 702 |
| |
704 | 703 |
| |
705 | 704 |
| |
706 |
| - | |
707 |
| - | |
708 | 705 |
| |
709 | 706 |
| |
710 | 707 |
| |
711 | 708 |
| |
712 | 709 |
| |
713 | 710 |
| |
714 |
| - | |
715 |
| - | |
716 |
| - | |
717 |
| - | |
718 | 711 |
| |
719 |
| - | |
720 | 712 |
| |
721 | 713 |
| |
722 | 714 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
| 164 | + | |
| 165 | + | |
164 | 166 |
| |
165 | 167 |
| |
166 | 168 |
| |
|
0 commit comments
Comments
(0)