Re: Add shutdown_at_recovery_target option to recovery.conf

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Petr Jelinek <petr(at)2ndquadrant(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Alex Shulgin <ash(at)commandprompt(dot)com>, Christoph Berg <cb(at)df7cb(dot)de>, Simon Riggs <simon(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add shutdown_at_recovery_target option to recovery.conf
Date: 2014-12-04 13:51:02
Message-ID: CAB7nPqQ7zc0hg5RLHqH+CSSqATxjHCb8iFsW2KrAc--b8oj_yA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

>
>
> On Thu, Dec 4, 2014 at 10:13 PM, Petr Jelinek <petr(at)2ndquadrant(dot)com>
> wrote:
> > On 02/12/14 18:59, Robert Haas wrote:
> >>
> >> On Fri, Nov 28, 2014 at 11:59 AM, Petr Jelinek <petr(at)2ndquadrant(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alex Shulgin 2014-12-04 14:16:52 Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps
Previous Message Michael Paquier 2014-12-04 13:45:33 Re: Add shutdown_at_recovery_target option to recovery.conf