Re: Fast promotion not used when doing a recovery_target PITR restore?

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fast promotion not used when doing a recovery_target PITR restore?
Date: 2017-06-23 01:56:07
Message-ID: CAB7nPqRrQ1RGsmc6kLpHHCEn9GPNjsxTE-XNAvdOtG8EZ9fmJw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jun 23, 2017 at 2:34 AM, Andres Freund <andres(at)anarazel(dot)de> wrote:
> I don't think it's really a bug - just a missed optimization. I'd
> personally not be in favor of backpatching this - it'll have some chance
> of screwing things up, even if I hope that chance is fairly small.

It would be better to wait until the branch for PG11 opens then.

> As a wider discussion, I wonder if we should keep non-fast promotion for
> anything but actual crash recovery?

Yes, I would push a bit forward and remove fallback_promote.

> And even there it might actually be
> a pretty good idea to not force a full checkpoint - getting up fast
> after a crash is kinda important..

But not that. Crash recovery is designed to be simple and robust, with
only the postmaster and the startup processes running when doing so.
Not having the startup process doing by itself checkpoints would
require the need of the bgwriter, which increases the likelihood of
bugs. In short, I don't think that improving performance is the matter
for crash recovery, robustness and simplicity are.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro HORIGUCHI 2017-06-23 02:00:42 Re: TRUE and true
Previous Message Noah Misch 2017-06-23 01:43:00 Re: transition table behavior with inheritance appears broken