- Notifications
You must be signed in to change notification settings - Fork5
Commit6a17826
committed
Change hashscan.c to keep its list of active hash index scans in
TopMemoryContext, rather than scattered through executor per-query contexts.This poses no danger of memory leak since the ResourceOwner mechanismguarantees release of no-longer-needed items. It is needed because theper-query context might already be released by the time we try to clean upthe hash scan list. Report by ykhuang, diagnosis by Heikki.Back-patch to 8.0, where the ResourceOwner-based cleanup was introduced.The given test case does not fail before 8.2, probably because we rearrangedtransaction abort processing somehow; but this coding is undoubtedly riskyso I'll patch 8.0 and 8.1 anyway.1 parentb2facfd commit6a17826
1 file changed
+20
-3
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 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
22 | 33 | | |
23 | 34 | | |
24 | 35 | | |
| |||
44 | 55 | | |
45 | 56 | | |
46 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
47 | 63 | | |
48 | 64 | | |
49 | 65 | | |
| |||
69 | 85 | | |
70 | 86 | | |
71 | 87 | | |
72 | | - | |
| 88 | + | |
73 | 89 | | |
74 | 90 | | |
75 | 91 | | |
76 | 92 | | |
77 | 93 | | |
78 | 94 | | |
79 | | - | |
| 95 | + | |
| 96 | + | |
80 | 97 | | |
81 | 98 | | |
82 | 99 | | |
| |||
0 commit comments
Comments
(0)