git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 8b1de88) | patch
Run checkpointer and bgwriter in crash recovery.
Mon, 2 Aug 2021 05:32:20 +0000 (17:32 +1200)
Mon, 2 Aug 2021 05:32:44 +0000 (17:32 +1200)
commit 7ff23c6d277d1d90478a51f0dd81414d343f3850
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
src/backend/access/transam/xlog.c diff | blob | blame | history
src/backend/postmaster/bgwriter.c diff | blob | blame | history
src/backend/postmaster/checkpointer.c diff | blob | blame | history
src/backend/postmaster/postmaster.c diff | blob | blame | history
src/backend/storage/sync/sync.c diff | blob | blame | history
src/include/storage/sync.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /