| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера