Re: waiting for reload in tests

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: waiting for reload in tests
Дата
Msg-id YnnB6hXzQ9b4kLWl@paquier.xyz
обсуждение исходный текст
Ответ на Re: waiting for reload in tests  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: waiting for reload in tests  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, May 09, 2022 at 09:29:32PM -0400, Tom Lane wrote:
> Brute force way: s/reload/restart/

That was my first thought, as it can be tricky to make sure that all
the processes got the update because we don't publish such a state.

One thing I was also thinking about would be to update
pg_stat_activity.state_change when a reload is processed on top of its
current updates, then wait for it to be effective in all the processes
reported.  The field remains NULL for most non-backend processes,
which would be a compatibility change.

> Less brute force: wait for "SHOW variable-you-changed" to report the
> value you expect.

This method may still be unreliable in some processes like a logirep
launcher/receiver or just autovacuum, no?
--
Michael

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: waiting for reload in tests
Следующее
От: Tom Lane
Дата:
Сообщение: Re: waiting for reload in tests