Re: valgrind a background worker - Mailing list pgsql-general

From Tom Lane
Subject Re: valgrind a background worker
Date
Msg-id 4076400.1676041432@sss.pgh.pa.us
Whole thread Raw
In response to valgrind a background worker  (Jon Erdman <jon@thewickedtribe.net>)
Responses Re: valgrind a background worker
Re: valgrind a background worker
List pgsql-general
=?UTF-8?Q?Jon_Erdman?= <jon@thewickedtribe.net> writes:
> I've got a background worker that has a slow memory leak in it 
> somewhere. How can I get it to start under valgrind to get a memcheck 
> output from it?

You have to valgrind the whole cluster AFAIK.  Basically, start
the postmaster under valgrind with --trace-children=yes.
For leak tracking you probably also want
--leak-check=full --track-origins=yes --read-var-info=yes

            regards, tom lane



pgsql-general by date:

Previous
From: GF
Date:
Subject: Re: How to use the BRIN index properly?
Next
From: "Lawrence, Mike (DTST)"
Date:
Subject: PostgreSQL 13.9.3 Uninstall fails with "Unable to initialize any installation mode"