forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd88976c
committed
Use a separate memory context for GIN scan keys.
It was getting tedious to track and release all the different things thatform a scan key. We were leaking at least the queryCategories array, andpossibly more, on a rescan. That was visible if a GIN index was used in anested loop join. This also protects from leaks in extractQuery method.No backpatching, given the lack of complaints from the field. Maybe later,after this has received more field testing.1 parent57fe246 commitd88976c
File tree
3 files changed
+29
-21
lines changed- src
- backend/access/gin
- include/access
3 files changed
+29
-21
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
497 | 497 |
| |
498 | 498 |
| |
499 | 499 |
| |
500 |
| - | |
| 500 | + | |
501 | 501 |
| |
502 | 502 |
| |
503 | 503 |
| |
| |||
515 | 515 |
| |
516 | 516 |
| |
517 | 517 |
| |
| 518 | + | |
| 519 | + | |
518 | 520 |
| |
519 | 521 |
| |
520 | 522 |
| |
521 | 523 |
| |
522 | 524 |
| |
| 525 | + | |
523 | 526 |
| |
524 | 527 |
| |
525 | 528 |
| |
|
Lines changed: 23 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 |
| |
48 | 53 |
| |
49 | 54 |
| |
| |||
227 | 232 |
| |
228 | 233 |
| |
229 | 234 |
| |
| 235 | + | |
| 236 | + | |
| 237 | + | |
230 | 238 |
| |
231 | 239 |
| |
232 | 240 |
| |
| |||
235 | 243 |
| |
236 | 244 |
| |
237 | 245 |
| |
238 |
| - | |
239 |
| - | |
240 |
| - | |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 |
| - | |
248 |
| - | |
249 |
| - | |
250 |
| - | |
251 |
| - | |
252 |
| - | |
253 |
| - | |
254 | 246 |
| |
255 | 247 |
| |
256 | 248 |
| |
257 | 249 |
| |
258 | 250 |
| |
259 | 251 |
| |
260 |
| - | |
261 |
| - | |
262 | 252 |
| |
263 | 253 |
| |
264 | 254 |
| |
265 | 255 |
| |
266 |
| - | |
267 | 256 |
| |
268 | 257 |
| |
269 |
| - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
270 | 262 |
| |
271 | 263 |
| |
272 | 264 |
| |
| |||
278 | 270 |
| |
279 | 271 |
| |
280 | 272 |
| |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
281 | 281 |
| |
282 | 282 |
| |
283 | 283 |
| |
| |||
412 | 412 |
| |
413 | 413 |
| |
414 | 414 |
| |
| 415 | + | |
| 416 | + | |
415 | 417 |
| |
416 | 418 |
| |
417 | 419 |
| |
| |||
445 | 447 |
| |
446 | 448 |
| |
447 | 449 |
| |
| 450 | + | |
448 | 451 |
| |
449 | 452 |
| |
450 | 453 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
888 | 888 |
| |
889 | 889 |
| |
890 | 890 |
| |
| 891 | + | |
| 892 | + | |
891 | 893 |
| |
892 | 894 |
| |
893 | 895 |
| |
|
0 commit comments
Comments
(0)