Re: Turning recovery.conf into GUCs

Поиск
Список
Период
Сортировка
От Alex Shulgin
Тема Re: Turning recovery.conf into GUCs
Дата
Msg-id 877fykqn46.fsf@commandprompt.com
обсуждение исходный текст
Ответ на Re: Turning recovery.conf into GUCs  (Jaime Casanova <jaime@2ndquadrant.com>)
Список pgsql-hackers
Jaime Casanova <jaime@2ndquadrant.com> writes:
>>>
>>> Either way, from the code it is clear that we only stay in recovery if
>>> standby_mode is directly turned on.  This makes the whole check for a
>>> specially named file unnecessary, IMO: we should just check the value of
>>> standby_mode (which is off by default).
>
> no. currently we enter in recovery mode when postgres see a
> recovery.conf and stays in recovery mode when standby_mode is on or an
> appropiate restore_command is provided.
>
> which means recovery.conf has two uses:
> 1) start in recovery mode (not continuous)
> 2) provide parameters for recovery mode and for streaming
>
> we still need a "recovery trigger" file that forces postgres to start
> in recovery mode and acts accordingly to recovery GUCs

Yes, these were my latest findings also, but if instead of removing the
trigger file upon successful recovery the server would set
standby_mode=off, that would also work.

--
Alex



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: postgresql.auto.conf comments
Следующее
От: Alex Shulgin
Дата:
Сообщение: Re: Turning recovery.conf into GUCs