Re: valgrind a background worker

Поиск
Список
Период
Сортировка
От Jon Erdman
Тема Re: valgrind a background worker
Дата
Msg-id 010101863e728abb-2adafcc0-e579-4430-a6cb-8791eb056f3d-000000@us-west-2.amazonses.com
обсуждение исходный текст
Ответ на Re: valgrind a background worker  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 2/10/23 3:05 PM, Tom Lane wrote:
> Jeffrey Walton <noloader@gmail.com> writes:
>> On Fri, Feb 10, 2023 at 10:04 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> 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
> 
>> One additional comment... the program in question and PostgreSQL
>> should also be built with -g -O1 per
>> https://valgrind.org/docs/manual/quick-start.html . Otherwise, there's
>> a risk the line information will not be accurate or usable.
> 
> Yeah.  Also, you need to compile Postgres with -DUSE_VALGRIND
> if you want valgrind to have any idea about palloc/pfree.

Thanks much both of you! I'll report back how it goes ;)
--
Jon Erdman (aka StuckMojo)
     PostgreSQL Zealot



В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: valgrind a background worker
Следующее
От: Andrus
Дата:
Сообщение: How to pass table column values to function