-
Notifications
You must be signed in to change notification settings - Fork 916
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
Add callback to mem_guard if loaded #7788
Conversation
4b698ab
to
6affce6
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7788 +/- ##
==========================================
+ Coverage 80.06% 81.89% +1.82%
==========================================
Files 190 247 +57
Lines 37181 45451 +8270
Branches 9450 11367 +1917
==========================================
+ Hits 29770 37221 +7451
- Misses 2997 3756 +759
- Partials 4414 4474 +60 ☔ View full report in Codecov by Sentry. |
6affce6
to
330539e
Compare
a34987c
to
0e500bd
Compare
Add code to call mem_guard to enable memory tracking for background workers. This is enabled for all background workers started by timescaledb, but not to other workers started by PostgreSQL.
0e500bd
to
7180947
Compare
This is intended as an interim solution until we have a proper plugin interface in place. See #7791 for a draft of the plugin interface. |
This is slightly hard to test (in the sense, create a good regression test), but I added printouts to |
I will create a better regression test with a separate plugin for #7791. |
Add code to call mem_guard to enable memory tracking for background workers. This is enabled for all background workers started by timescaledb, but not to other workers started by PostgreSQL.