Re: Allow some recovery parameters to be changed with reload

Поиск
Список
Период
Сортировка
От Sergei Kornilov
Тема Re: Allow some recovery parameters to be changed with reload
Дата
Msg-id 56311604665173@mail.yandex.ru
обсуждение исходный текст
Ответ на Re: Allow some recovery parameters to be changed with reload  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Ответы Re: Allow some recovery parameters to be changed with reload
Список pgsql-hackers
Hello

> Currently when restore_command is not set, archive recovery fails
> at the beginning. With the patch, how should we treat the case where
> retore_command is reset to empty during archive recovery? We should
> reject that change of restore_command?

Good point. I think we should reject that change. But (AFAIC) I cannot use GUC check callback for this purpose, as only
thestartup process knows StandbyModeRequested. I think it would be appropriate to call validateRecoveryParameters from
StartupRereadConfig.As side effect this add warning/hint "specified neither primary_conninfo nor restore_command" in
standbymode in appropriate configuration state. Not sure about the rest checks in validateRecoveryParameters, maybe
it'sa wrong idea to recheck them here and I need to separate these checks into another function.
 

regards, Sergei
Вложения

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Move OpenSSL random under USE_OPENSSL_RANDOM
Следующее
От: John Naylor
Дата:
Сообщение: Re: Move catalog toast table and index declarations