Re: Reinitialize stack base after fork (for the benefit of rr)?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Reinitialize stack base after fork (for the benefit of rr)?
Дата
Msg-id 20200406035621.25kueh4xdjljuuyb@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Reinitialize stack base after fork (for the benefit of rr)?  (Peter Geoghegan <pg@bowt.ie>)
Ответы Re: Reinitialize stack base after fork (for the benefit of rr)?
Список pgsql-hackers
Hi,

On 2020-04-05 20:35:50 -0700, Peter Geoghegan wrote:
> I have found that it's useful to use rr to debug Postgres by following
> certain recipes. I'll share some of the details now, in case anybody
> else wants to start using rr and isn't sure where to start.

Perhaps put it on a wiki page?

> I have a script that records a postgres session using rr with these options:
> 
> rr record -M /code/postgresql/$BRANCH/install/bin/postgres \
>   -D /code/postgresql/$BRANCH/data \
>   --log_line_prefix="%m %p " \
>   --autovacuum=off \

Were you doing this because of occasional failures in autovacuum
workers?  If so, that shouldn't be necessary after the stack base change
(previously workers IIRC also could start with the wrong stack base -
but didn't end up checking stack depth except for expression indexes).

Greetings,

Andres Freund



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Reinitialize stack base after fork (for the benefit of rr)?
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: Index Skip Scan