Re: Turning recovery.conf into GUCs - Mailing list pgsql-hackers

From Alex Shulgin
Subject Re: Turning recovery.conf into GUCs
Date
Msg-id 877fykqn46.fsf@commandprompt.com
Whole thread Raw
In response to Re: Turning recovery.conf into GUCs  (Jaime Casanova <jaime@2ndquadrant.com>)
List 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 by date:

Previous
From: Stephen Frost
Date:
Subject: Re: postgresql.auto.conf comments
Next
From: Alex Shulgin
Date:
Subject: Re: Turning recovery.conf into GUCs