| From: | Pradeep Kumar <spradeepkumar29(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Seeking Guidance on Using Valgrind in PostgreSQL for Detecting Memory Leaks in Extension Code |
| Date: | 2023-06-08 11:08:39 |
| Message-ID: | CAJ4xhPm09qvkNmmGDAjaxN+oP4dyRwdi6fXW3an4=qtGwBp8pw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Dear Postgres Hackers,
I am writing to seek your guidance and utilization of Valgrind in
PostgreSQL for detecting memory leaks in extension-related code. Recently,
I have been exploring ways to improve the stability and performance of
PostgreSQL extensions by addressing memory-related issues, specifically
memory leaks.
I have come across Valgrind, a tool for detecting memory errors, leaks, and
other memory-related problems in C/C++ programs. However, I am in need of
some guidance on how to effectively use Valgrind within the context of
PostgreSQL and extensions.
I request your assistance in providing insights on the following:
1. Steps for utilizing Valgrind in PostgreSQL:
- How do I install Valgrind and integrate it with PostgreSQL?
- Are there any specific configurations or flags that need to be set for
optimal usage with PostgreSQL?
2. Techniques for detecting memory leaks in extension-related code:
- What are the recommended approaches for exercising extension code with
Valgrind?
- Are there any specific considerations or best practices to keep in
mind when analyzing Valgrind's output for memory leaks in extension code?
I would appreciate any resources, instructions, or insights you can provide
regarding the above points.
Thanks and regards,
Pradeep
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Magnus Hagander | 2023-06-08 11:10:00 | Re: win32ver data in meson-built postgres.exe |
| Previous Message | Tomas Vondra | 2023-06-08 10:37:37 | Re: Let's make PostgreSQL multi-threaded |