Re: Valgrind mem-check for postgres extension

2022-05-18 Thread Andrew Dunstan
On 2022-05-18 We 01:12, Tom Lane wrote: > Natarajan R writes: >> I have few doubts in here, >> 1. When I run with *--leak-check=full*, I get memory leaks for postgres >> functions under possibly or definitely lost categories.. Is this expected? > Maybe ... you did not show your test case, so it'

Re: Valgrind mem-check for postgres extension

2022-05-17 Thread Tom Lane
Natarajan R writes: > I have few doubts in here, > 1. When I run with *--leak-check=full*, I get memory leaks for postgres > functions under possibly or definitely lost categories.. Is this expected? Maybe ... you did not show your test case, so it's hard to say. But it could well be that this

Valgrind mem-check for postgres extension

2022-05-17 Thread Natarajan R
Hi pg-hackers, I have written a postgres extension, and know that memory leak check can be done with valgrind. With the help of postgres_valgrind_wiki started postgres server with the valgrind(as given in the wiki) valgrind --leak-check=no --gen-suppres