Commit 7ff23c6
committed
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 cdd46c7 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.com1 parent 8b1de88 commit 7ff23c6
File tree
6 files changed
+22
-65
lines changed- src
- backend
- access/transam
- postmaster
- storage/sync
- include/storage
6 files changed
+22
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | 872 | | |
876 | 873 | | |
877 | 874 | | |
| |||
7311 | 7308 | | |
7312 | 7309 | | |
7313 | 7310 | | |
| 7311 | + | |
| 7312 | + | |
| 7313 | + | |
7314 | 7314 | | |
7315 | 7315 | | |
7316 | | - | |
7317 | | - | |
7318 | | - | |
7319 | | - | |
7320 | | - | |
7321 | | - | |
7322 | | - | |
7323 | | - | |
7324 | | - | |
| 7316 | + | |
7325 | 7317 | | |
7326 | | - | |
7327 | | - | |
7328 | | - | |
7329 | | - | |
| 7318 | + | |
7330 | 7319 | | |
7331 | | - | |
7332 | | - | |
7333 | 7320 | | |
7334 | 7321 | | |
7335 | 7322 | | |
| |||
7903 | 7890 | | |
7904 | 7891 | | |
7905 | 7892 | | |
7906 | | - | |
| 7893 | + | |
7907 | 7894 | | |
7908 | 7895 | | |
7909 | 7896 | | |
| |||
7927 | 7914 | | |
7928 | 7915 | | |
7929 | 7916 | | |
7930 | | - | |
| 7917 | + | |
| 7918 | + | |
| 7919 | + | |
| 7920 | + | |
| 7921 | + | |
7931 | 7922 | | |
7932 | 7923 | | |
7933 | 7924 | | |
| |||
12182 | 12173 | | |
12183 | 12174 | | |
12184 | 12175 | | |
12185 | | - | |
| 12176 | + | |
12186 | 12177 | | |
12187 | 12178 | | |
12188 | 12179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1403 | 1403 | | |
1404 | 1404 | | |
1405 | 1405 | | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
1406 | 1412 | | |
1407 | 1413 | | |
1408 | 1414 | | |
| |||
1765 | 1771 | | |
1766 | 1772 | | |
1767 | 1773 | | |
1768 | | - | |
| 1774 | + | |
1769 | 1775 | | |
1770 | 1776 | | |
1771 | 1777 | | |
| |||
5161 | 5167 | | |
5162 | 5168 | | |
5163 | 5169 | | |
5164 | | - | |
5165 | | - | |
5166 | | - | |
5167 | | - | |
5168 | | - | |
5169 | | - | |
5170 | | - | |
5171 | | - | |
5172 | | - | |
5173 | 5170 | | |
5174 | 5171 | | |
5175 | 5172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
| 132 | + | |
| 133 | + | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
0 commit comments