Re: Supply restore_command to pg_rewind via CLI argument

Поиск
Список
Период
Сортировка
От Alexey Kondratov
Тема Re: Supply restore_command to pg_rewind via CLI argument
Дата
Msg-id CADfU8WxRZ7Td61k0tB9SyV0_SjJBaXJvs+isKvxXX_i6eDAJXQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Supply restore_command to pg_rewind via CLI argument  (Andrey Borodin <x4mmm@yandex-team.ru>)
Ответы Re: Supply restore_command to pg_rewind via CLI argument  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
On Fri, Aug 27, 2021 at 10:05 AM Andrey Borodin <x4mmm@yandex-team.ru> wrote:
> There is a small bug
> +       /*
> +        * Take restore_command from the postgresql.conf only if it is not already
> +        * provided as a command line option.
> +        */
> +       if (!restore_wal && restore_command == NULL)
>                 return;
>
> I think we should use condition (!restore_wal || restore_command != NULL).
>

Yes, you are right, thanks. Attached is a fixed version. Tests were
passing since PostgresNode->enable_restoring is adding restore_command
to the postgresql.conf anyway.

>
> Besides this patch looks good and is ready for committer IMV.
>


-- 
Alexey Kondratov

Вложения

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

Предыдущее
От: Marko Tiikkaja
Дата:
Сообщение: Re: UNIQUE null treatment option
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: [PATCH] Add OAUTH2_SCOPE variable for scope configuration