Re: Add shutdown_at_recovery_target option to recovery.conf - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Add shutdown_at_recovery_target option to recovery.conf
Date
Msg-id CAB7nPqQ7zc0hg5RLHqH+CSSqATxjHCb8iFsW2KrAc--b8oj_yA@mail.gmail.com
Whole thread Raw
In response to Re: Add shutdown_at_recovery_target option to recovery.conf  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers


On Thu, Dec 4, 2014 at 10:45 PM, Michael Paquier <michael.paquier@gmail.com> wrote:


On Thu, Dec 4, 2014 at 10:13 PM, Petr Jelinek <petr@2ndquadrant.com> wrote:
> On 02/12/14 18:59, Robert Haas wrote:
>>
>> On Fri, Nov 28, 2014 at 11:59 AM, Petr Jelinek <petr@2ndquadrant.com>
>> wrote:
>>>>>
>>>>> I'm a bit late to the party, but wouldn't
>>>>>
>>>>> recovery_target_action = ...
>>>>>
>>>>> have been a better name for this? It'd be in line with the other
>>>>> recovery_target_* parameters, and also a bit shorter than the imho
>>>>> somewhat ugly "action_at_recovery_target".
>>>>
>>>>
>>>> FWIW, I too think that "recovery_target_action" is a better name.
>>>
>>>
>>> I agree.
>>
>>
>> +1.
>>
>
> Here is patch which renames action_at_recovery_target to
> recovery_target_action everywhere.
Thanks, Looks good to me.

A couple of things that would be good to document as well in recovery-config.sgml:
- the fact that pause_at_recovery_target is deprecated.
- the fact that both parameters cannot be used at the same time.
Let's not surprise the users with behaviors they may expect or guess and document this stuff precisely..
Btw, you are missing as well the addition of this parameter in recovery.conf.sample (mentioned by Fujii-san upthread). It would be nice to have a description paragraph as well similarly to what is written for pause_at_recovery_target.
--
Michael

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Add shutdown_at_recovery_target option to recovery.conf
Next
From: Alex Shulgin
Date:
Subject: Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps