Re: waiting for reload in tests

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: waiting for reload in tests
Дата
Msg-id 4016307.1652146172@sss.pgh.pa.us
обсуждение исходный текст
Ответ на waiting for reload in tests  (Andres Freund <andres@anarazel.de>)
Ответы Re: waiting for reload in tests  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> In a couple tests I (IIRC others as well) had the problem that a config reload
> isn't actually synchronous. I.e. a sequence like

> $node_primary->reload;
> $node_primary->safe_psql('postgres',...)

> isn't actually guaranteed to observe the config as reloaded in the the
> safe_psql().

Brute force way: s/reload/restart/

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

            regards, tom lane



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

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