Re: Background writer and checkpointer in crash recovery

From: Amul Sul <sulamul(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Aleksander Alekseev <aleksander(at)timescale(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Background writer and checkpointer in crash recovery
Date: 2021-08-02 13:40:20
Message-ID: CAAJ_b97OurqpvkXOWvk=TMOKhvjiiggWocoFjaXZj=qOJSD5tQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Aug 2, 2021 at 6:47 PM Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>
> On Mon, Aug 2, 2021 at 1:37 AM Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
> > I pushed 0001.
>
> That's great. I just realized that this leaves us with identical
> RequestCheckpoint() calls in two nearby places. Is there any reason
> not to further simplify as in the attached?
>
+1, also, can we just get rid off "promoted" flag? The only
inconvenience is we might need to check three flags instead of one to
perform the checkpoint at the end.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jakub Wartak 2021-08-02 13:51:44 RE: Background writer and checkpointer in crash recovery
Previous Message Robert Haas 2021-08-02 13:17:29 Re: Background writer and checkpointer in crash recovery