New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't leak Chunks in classify_relation #4029
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4029 +/- ##
==========================================
- Coverage 90.70% 90.68% -0.02%
==========================================
Files 214 214
Lines 38726 38732 +6
==========================================
- Hits 35126 35124 -2
- Misses 3600 3608 +8
Continue to review full report at Codecov.
|
Flaky test:
|
Not sure what it is... there seems to be no core dumps. |
Ran the tests under asan just in case, no failures. |
Flaky test cagg_bgw_dist_ht:
|
This function is called often, at least 4 times per chunk, so these add up. Freeing these chunks allows us to save memory. Ideally, we should fix the function not to look up the chunk anew each time. Also make a couple other tweaks that reduce memory usage for planning.
This function is called often, at least 4 times per chunk, so these add
up. Freeing these chunks allows us to save memory. Ideally, we should
fix the function not to look up the chunk anew each time.
Also make a couple other tweaks that reduce memory usage for planning.
Fixes #2486
For a simple query
explain delete from t where value = 1.1
, wheret
is a distributed hypertable with 106 partitions on two data nodes, the memory usage at query completion is reduced from 6.7 MB baseline to 5.5 MB with this patch.