From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Yasir <yasir(dot)hussain(dot)shah(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Valgrind - showing memory leaks |
Date: | 2025-05-08 14:27:58 |
Message-ID: | 186285.1746714478@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Yasir <yasir(dot)hussain(dot)shah(at)gmail(dot)com> writes:
> I believe that the valgrind should not report any memory leaks in such
> simple/common commands. What am I doing wrong here?
I think you are vastly overestimating both the intelligence of
valgrind, and our level of concern about minor one-time leaks.
Most of these are probably not really leaks at all, but failure
on valgrind's part to notice the relevant pointers. Moreover,
almost all are blamed on catcache setup, which is a one-time
operation; so even if it is losing track of some allocations,
it's not likely to be something worth worrying about.
Alvaro seems to think CheckNNConstraintFetch is worth taking
a second look at, and maybe he's right, but the amount of
storage involved there seems unexciting too.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2025-05-08 14:49:32 | Re: Improve docs for n_distinct_inherited |
Previous Message | Andrey Borodin | 2025-05-08 13:56:27 | Re: Call for Posters: PGConf.dev 2025 |