pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Run checkpointer and bgwriter in crash recovery.
Date: Mon, 02 Aug 2021 05:33:48 +0000
Message-ID: <E1mAQaC-0007Nz-MZ@gemulon.postgresql.org> (raw)

Run checkpointer and bgwriter in crash recovery.

Start up the checkpointer and bgwriter during crash recovery (except in
--single mode), as we do for replication.  This wasn't done back in
commit cdd46c76 out of caution.  Now it seems like a better idea to make
the environment as similar as possible in both cases.  There may also be
some performance advantages.

Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Tested-by: Jakub Wartak <Jakub.Wartak@tomtom.com>
Discussion: https://postgr.es/m/CA%2BhUKGJ8NRsqgkZEnsnRc2MFROBV-jCnacbYvtpptK2A9YYp9Q%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7ff23c6d277d1d90478a51f0dd81414d343f3850

Modified Files
--------------
src/backend/access/transam/xlog.c     | 33 ++++++++++++---------------------
src/backend/postmaster/bgwriter.c     |  3 ---
src/backend/postmaster/checkpointer.c |  3 ---
src/backend/postmaster/postmaster.c   | 17 +++++++----------
src/backend/storage/sync/sync.c       | 30 +++---------------------------
src/include/storage/sync.h            |  1 -
6 files changed, 22 insertions(+), 65 deletions(-)



Message-ID: <E1mAQaC-0007Nz-MZ@gemulon.postgresql.org>
Permalink:  ../E1mAQaC-0007Nz-MZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mAQaC-0007Nz-MZ@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Run checkpointer and bgwriter in crash recovery.
  In-Reply-To: <E1mAQaC-0007Nz-MZ@gemulon.postgresql.org>
  References: <E1mAQaC-0007Nz-MZ@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox